gimp r24774 - in trunk: . app/tools



Author: martinn
Date: Sat Feb  2 09:15:04 2008
New Revision: 24774
URL: http://svn.gnome.org/viewvc/gimp?rev=24774&view=rev

Log:
2008-02-02  Martin Nordholts  <martinn svn gnome org>

	* app/tools/gimppolygonselecttool.c
	(gimp_polygon_select_tool_remove_last): Properly halt the tool
	when there are no vertices left.


Modified:
   trunk/ChangeLog
   trunk/app/tools/gimppolygonselecttool.c

Modified: trunk/app/tools/gimppolygonselecttool.c
==============================================================================
--- trunk/app/tools/gimppolygonselecttool.c	(original)
+++ trunk/app/tools/gimppolygonselecttool.c	Sat Feb  2 09:15:04 2008
@@ -535,14 +535,12 @@
 
   gimp_draw_tool_pause (draw_tool);
 
+  poly_sel_tool->num_points--;
+
   if (poly_sel_tool->num_points == 0)
     {
       gimp_polygon_select_tool_halt (poly_sel_tool);
     }
-  else
-    {
-      poly_sel_tool->num_points--;
-    }
 
   gimp_draw_tool_resume (draw_tool);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]