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