mirror of https://github.com/GNOME/gimp.git
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:
parent
77cd46d179
commit
8fd278b69e
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue