mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-03-31 14:43:49 +03:00
Fix #32 Ambiguous abs
This commit is contained in:
parent
4743cd1fe6
commit
c2d2b8293e
@ -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 = abs(shiftWidth/2);
|
cutX = std::abs(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 = abs(shiftHeight/2);
|
cutY = std::abs(shiftHeight/2);
|
||||||
cutHeigth += shiftHeight;
|
cutHeigth += shiftHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user