Properly halt the tool when there are no vertices left.

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.

svn path=/trunk/; revision=24774
This commit is contained in:
Martin Nordholts 2008-02-02 09:15:04 +00:00 committed by Martin Nordholts
parent 77cd46d179
commit 8fd278b69e
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,9 @@
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.
2008-02-02 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimppolygonselecttool.c

View File

@ -535,14 +535,12 @@ gimp_polygon_select_tool_remove_last (GimpPolygonSelectTool *poly_sel_tool)
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);
}