gimp r24776 - in trunk: . app/tools



Author: martinn
Date: Sat Feb  2 10:00:56 2008
New Revision: 24776
URL: http://svn.gnome.org/viewvc/gimp?rev=24776&view=rev

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

	* app/tools/gimppolygonselecttool.c
	(gimp_polygon_select_tool_commit): Only create a selection from
	the polygon if there are 3 or more vertices.


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 10:00:56 2008
@@ -455,7 +455,10 @@
 gimp_polygon_select_tool_commit (GimpPolygonSelectTool *poly_sel_tool,
                                  GimpDisplay           *display)
 {
-  gimp_polygon_select_tool_select (poly_sel_tool, display);
+  if (poly_sel_tool->num_points >= 3)
+    {
+      gimp_polygon_select_tool_select (poly_sel_tool, display);
+    }
 
   gimp_polygon_select_tool_halt (poly_sel_tool);
 



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