Commit ecf3e70d authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: Fixed the gradient when filling a polyline with a gradient.

parent 41d0ef0f
......@@ -2824,11 +2824,8 @@ int GlowDrawQt::gradient_fill_arc(GlowWind* wind, int x, int y, int w, int h,
}
QPainterPath path;
if (!(angle2 == 360 || angle2 == 180))
path.moveTo(x + w / 2.0, y + h / 2.0);
path.moveTo(x + w / 2.0, y + h / 2.0);
path.arcTo(x, y, w, h, angle1, angle2);
if (!(angle2 == 360 || angle2 == 180))
path.moveTo(x + w / 2.0, y + h / 2.0);
painter->fillPath(path, *pat);
delete pat;
......
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