do nothing in _button_press when the tool is in the VECTORS_FINISHED

2004-01-26  Simon Budig  <simon@gimp.org>

	* app/tools/gimpvectortool.c: do nothing in _button_press when
	the tool is in the VECTORS_FINISHED state.
	Fixes bug #132508.
This commit is contained in:
Simon Budig 2004-01-25 23:51:18 +00:00 committed by Simon Budig
parent d403e02315
commit 9d8df85168
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-01-26 Simon Budig <simon@gimp.org>
* app/tools/gimpvectortool.c: do nothing in _button_press when
the tool is in the VECTORS_FINISHED state.
Fixes bug #132508.
2004-01-25 Manish Singh <yosh@gimp.org>
* plug-ins/common/postscript.c: use GSpawn instead of popen, -dBATCH,

View file

@ -294,6 +294,10 @@ gimp_vector_tool_button_press (GimpTool *tool,
vector_tool = GIMP_VECTOR_TOOL (tool);
options = GIMP_VECTOR_OPTIONS (tool->tool_info->tool_options);
/* do nothing if we are an FINISHED state */
if (vector_tool->function == VECTORS_FINISHED)
return;
g_return_if_fail (vector_tool->vectors != NULL ||
vector_tool->function == VECTORS_SELECT_VECTOR ||
vector_tool->function == VECTORS_CREATE_VECTOR);