Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 99ed7bbd authored by Sven Langkamp's avatar Sven Langkamp

fix rounding error in popup palette

parent 14d2cc18
......@@ -523,7 +523,7 @@ QPainterPath KisPopupPalette::pathFromPresetIndex(int index)
int ringSize = brushOuterRadius - colorOuterRadius - 6;
QRect innerRect = outerRect.adjusted(ringSize, ringSize, -ringSize, -ringSize);
qreal angleLength = 360 / numSlots();
qreal angleLength = 360.0 / numSlots();
qreal angle = index * angleLength;
QPainterPath path;
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