[gimp] Bug 701410 - Small artifacts appear when performing a selection
- From: Téo Mazars <teom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 701410 - Small artifacts appear when performing a selection
- Date: Fri, 21 Jun 2013 18:19:12 +0000 (UTC)
commit 7a0f8ad78ef26fa004359eb155385960baef14cf
Author: Téo Mazars <teo mazars ensimag fr>
Date: Fri Jun 21 20:09:18 2013 +0200
Bug 701410 - Small artifacts appear when performing a selection
Do not allow negative radius.
app/display/gimpcanvasarc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpcanvasarc.c b/app/display/gimpcanvasarc.c
index 2ff5104..16e7974 100644
--- a/app/display/gimpcanvasarc.c
+++ b/app/display/gimpcanvasarc.c
@@ -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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]