Commit c934e166 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Fixed gradient_fill_polyline.

parent 11d1545b
......@@ -1911,11 +1911,8 @@ void GlowDrawQt::gradient_fill_arc(int x, int y, int width, int height,
if ((pat = gradient_create_pattern(x, y, width, height, d0, d1, d2, gradient))) {
get_painter(glow_eDrawType_Line, 0);
QPainterPath path;
if (!(angle2 == 360 || angle2 == 180))
path.moveTo(x + width / 2.0, y + height / 2.0);
path.moveTo(x + width / 2.0, y + height / 2.0);
path.arcTo(x, y, width, height, angle1, angle2);
if (!(angle2 == 360 || angle2 == 180))
path.moveTo(x + width / 2.0, y + height / 2.0);
painter.fillPath(path, *pat);
reset_clip();
......
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