From 906fff59117507172ad4b6f4a6d00b504abffda7 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Fri, 20 May 2016 19:14:48 +0400 Subject: [PATCH] std::abs() --> fabs() --- 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 af435e2..6596c90 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 = std::abs(shiftWidth/2); + cutX = fabs(shiftWidth/2); cutWidth += shiftWidth; } if (shiftHeight > 0){ point.setY(point.x()+shiftHeight/2); } else { - cutY = std::abs(shiftHeight/2); + cutY = fabs(shiftHeight/2); cutHeigth += shiftHeight; }