Bug 701410 - Small artifacts appear when performing a selection

Do not allow negative radius.
This commit is contained in:
Téo Mazars 2013-06-21 20:09:18 +02:00
parent 6ad70e33e6
commit 7a0f8ad78e
1 changed files with 2 additions and 2 deletions

View File

@ -253,8 +253,8 @@ gimp_canvas_arc_transform (GimpCanvasItem *item,
if (! private->filled)
{
*radius_x -= 0.5;
*radius_y -= 0.5;
*radius_x = MAX (*radius_x - 0.5, 0.0);
*radius_y = MAX (*radius_y - 0.5, 0.0);
}
}