mirror of
				https://github.com/fralx/LimeReport.git
				synced 2025-11-03 22:51:26 +03:00 
			
		
		
		
	std::abs() --> fabs()
This commit is contained in:
		@@ -210,14 +210,14 @@ void ImageItem::paint(QPainter *ppainter, const QStyleOptionGraphicsItem *option
 | 
				
			|||||||
            if (shiftWidth > 0){
 | 
					            if (shiftWidth > 0){
 | 
				
			||||||
                point.setX(point.x()+shiftWidth/2);
 | 
					                point.setX(point.x()+shiftWidth/2);
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                cutX = std::abs(shiftWidth/2);
 | 
					                cutX = fabs(shiftWidth/2);
 | 
				
			||||||
                cutWidth += shiftWidth;
 | 
					                cutWidth += shiftWidth;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (shiftHeight > 0){
 | 
					            if (shiftHeight > 0){
 | 
				
			||||||
                point.setY(point.x()+shiftHeight/2);
 | 
					                point.setY(point.x()+shiftHeight/2);
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                cutY = std::abs(shiftHeight/2);
 | 
					                cutY = fabs(shiftHeight/2);
 | 
				
			||||||
                cutHeigth += shiftHeight;
 | 
					                cutHeigth += shiftHeight;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user