Commit 48f6d1b8 authored by Michael Natterer's avatar Michael Natterer 😴

app: avoid scaling GimpCanvasArc to zero, it causes a non-invertable matrix

parent 2e643e62
......@@ -256,6 +256,10 @@ gimp_canvas_arc_transform (GimpCanvasItem *item,
*radius_x = MAX (*radius_x - 0.5, 0.0);
*radius_y = MAX (*radius_y - 0.5, 0.0);
}
/* avoid cairo_scale (cr, 0.0, 0.0) */
if (*radius_x == 0.0) *radius_x = 0.000001;
if (*radius_y == 0.0) *radius_y = 0.000001;
}
static void
......
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