Commit 63af9580 authored by Martin Nordholts's avatar Martin Nordholts Committed by Martin Nordholts
Browse files

Only create a selection from the polygon if there are 3 or more vertices.

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.

svn path=/trunk/; revision=24776
parent 5700c67b
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.
2008-02-02 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimppolygonselecttool.c
......
......@@ -455,7 +455,10 @@ static void
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);
......
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