Commit 3e74368a authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

return FALSE if the keypress event isn't handled because of a display

2005-07-19  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpvectortool.c (gimp_vector_tool_key_press): return
	FALSE if the keypress event isn't handled because of a display
	mismatch.
parent f56ab4b8
2005-07-19 Sven Neumann <sven@gimp.org>
* app/tools/gimpvectortool.c (gimp_vector_tool_key_press): return
FALSE if the keypress event isn't handled because the display
doesn't match.
2005-07-19 Sven Neumann <sven@gimp.org>
* plug-ins/common/mng.c (mng_save_image): fixed signedness warnings.
......
......@@ -794,6 +794,9 @@ gimp_vector_tool_key_press (GimpTool *tool,
if (! vector_tool->vectors)
return FALSE;
if (gdisp != draw_tool->gdisp)
return FALSE;
shell = GIMP_DISPLAY_SHELL (draw_tool->gdisp->shell);
if (kevent->state & GDK_SHIFT_MASK)
......@@ -802,8 +805,6 @@ gimp_vector_tool_key_press (GimpTool *tool,
if (kevent->state & GDK_CONTROL_MASK)
pixels = 50.0;
if (gdisp == draw_tool->gdisp)
{
switch (kevent->keyval)
{
case GDK_KP_Enter:
......@@ -866,7 +867,6 @@ gimp_vector_tool_key_press (GimpTool *tool,
}
gimp_image_flush (gdisp->gimage);
}
return TRUE;
}
......
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