Don't allow to create a new stroke when in in Insert/Delete Mode.

2003-08-21  Simon Budig  <simon@gimp.org>

        * app/tools/gimpvectortool.c: Don't allow to create a new stroke
        when in in Insert/Delete Mode.
This commit is contained in:
Simon Budig
2003-08-21 00:18:44 +00:00
committed by Simon Budig
parent 2a47fda7f0
commit 9b5817fc25
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-08-21 Simon Budig <simon@gimp.org>
* app/tools/gimpvectortool.c: Don't allow to create a new stroke
when in in Insert/Delete Mode.
2003-08-21 Simon Budig <simon@gimp.org>
* app/tools/tools-enums.h: Added enum for vector tool operation

View File

@ -487,6 +487,9 @@ gimp_vector_tool_motion (GimpTool *tool,
vector_tool = GIMP_VECTOR_TOOL (tool);
options = GIMP_VECTOR_OPTIONS (tool->tool_info->tool_options);
if (vector_tool->function == VECTORS_FINISHED)
return;
gimp_vectors_freeze (vector_tool->vectors);
if (state & GDK_SHIFT_MASK)
@ -738,7 +741,10 @@ gimp_vector_tool_oper_update (GimpTool *tool,
if (! vector_tool->vectors || GIMP_DRAW_TOOL (tool)->gdisp != gdisp)
{
vector_tool->function = VECTORS_CREATE_VECTOR;
vector_tool->function =
edit_mode == GIMP_VECTOR_MODE_ADJUST ?
VECTORS_FINISHED :
VECTORS_CREATE_VECTOR;
return;
}