From c2d2b8293e153c700f209b53048770000c4f877e Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Mon, 25 Apr 2016 21:58:55 +0300 Subject: [PATCH] Fix #32 Ambiguous abs --- limereport/items/lrimageitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/limereport/items/lrimageitem.cpp b/limereport/items/lrimageitem.cpp index 472f363..af435e2 100644 --- a/limereport/items/lrimageitem.cpp +++ b/limereport/items/lrimageitem.cpp @@ -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; }