Commit 46f8a861 authored by Boudewijn Rempt's avatar Boudewijn Rempt

CID 248387: Result is not floating-point (UNINTENDED_INTEGER_DIVISION)

integer_division: Dividing integer expressions canvasIndicatorSize and 2,
and then converting the integer quotient to type float. Any remainder,
or fractional part of the quotient, is ignored.
parent d0f96566
......@@ -674,7 +674,7 @@ QPainterPath KisPopupPalette::drawRotationIndicator(qreal rotationAngle, bool ca
QPainterPath canvasRotationIndicator;
int canvasIndicatorSize = 15;
float canvasIndicatorMiddle = canvasIndicatorSize/2;
int canvasIndicatorMiddle = canvasIndicatorSize / 2;
QRect indicatorRectangle = QRect( rotationDialXPosition - canvasIndicatorMiddle, rotationDialYPosition - canvasIndicatorMiddle,
canvasIndicatorSize, canvasIndicatorSize );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment