0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 00:33:02 +03:00

std::abs() --> fabs()

This commit is contained in:
Arin Alexander 2016-05-20 19:14:48 +04:00
parent ce01b9a9ab
commit 906fff5911

View File

@ -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;
}