expose the preview when the tool is initialized. Fixes missing redraws

2008-09-04  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformtool.c 
(gimp_transform_tool_initialize):
	expose the preview when the tool is initialized. Fixes missing
	redraws when the tool is selected from the menus (bug #550911).

	(gimp_transform_tool_motion): expose the preview after
	recalculating the transformation matrix.


svn path=/trunk/; revision=26868
This commit is contained in:
Sven Neumann 2008-09-04 21:34:38 +00:00 committed by Sven Neumann
parent 8172ba88a1
commit 66a3aedea6
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2008-09-04 Sven Neumann <sven@gimp.org>
* app/tools/gimptransformtool.c (gimp_transform_tool_initialize):
expose the preview when the tool is initialized. Fixes missing
redraws when the tool is selected from the menus (bug #550911).
(gimp_transform_tool_motion): expose the preview after
recalculating the transformation matrix.
2008-09-04 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-dnd.c: improved the new DND code.

View File

@ -361,6 +361,8 @@ gimp_transform_tool_initialize (GimpTool *tool,
/* start drawing the bounding box and handles... */
gimp_draw_tool_start (GIMP_DRAW_TOOL (tool), display);
gimp_transform_tool_expose_preview (tr_tool);
tr_tool->function = TRANSFORM_CREATING;
/* Save the current transformation info */
@ -487,9 +489,9 @@ gimp_transform_tool_motion (GimpTool *tool,
{
tr_tool_class->motion (tr_tool, display);
gimp_transform_tool_expose_preview (tr_tool);
gimp_transform_tool_recalc (tr_tool, display);
gimp_transform_tool_expose_preview (tr_tool);
}
tr_tool->lastx = tr_tool->curx;