Commit 5749bc21 authored by Sven Neumann's avatar Sven Neumann

remember the drawable we were working on instead of relying to

  * app/transform_core.c: remember the drawable we were working on
    instead of relying to gimp_active_drawable ().
    This should fix bug #2381.

--Sven
parent e361e250
Thu Oct 28 00:52:57 MEST 1999 Sven Neumann <sven@gimp.org>
* app/transform_core.c: remember the drawable we were working on
instead of relying to gimp_active_drawable ().
This should fix bug #2381.
Thu Oct 28 00:13:56 MEST 1999 Sven Neumann <sven@gimp.org>
* plug-ins/common/bz2.c
......
......@@ -505,11 +505,13 @@ transform_core_doit (Tool *tool,
* selection to the transform tool's private selection pointer, so
* that the original source can be repeatedly modified.
*/
tool->drawable = gimage_active_drawable (gdisp->gimage);
transform_core->original = transform_core_cut (gdisp->gimage,
gimage_active_drawable (gdisp->gimage),
tool->drawable,
&new_layer);
pundo = paths_transform_start_undo(gdisp->gimage);
pundo = paths_transform_start_undo (gdisp->gimage);
/* Send the request for the transformation to the tool...
*/
......@@ -524,7 +526,8 @@ transform_core_doit (Tool *tool,
/* paste the new transformed image to the gimage...also implement
* undo...
*/
transform_core_paste (gdisp->gimage, gimage_active_drawable (gdisp->gimage),
/* FIXME: we should check if the drawable is still valid */
transform_core_paste (gdisp->gimage, tool->drawable,
new_tiles, new_layer);
/* create and initialize the transform_undo structure */
......
......@@ -505,11 +505,13 @@ transform_core_doit (Tool *tool,
* selection to the transform tool's private selection pointer, so
* that the original source can be repeatedly modified.
*/
tool->drawable = gimage_active_drawable (gdisp->gimage);
transform_core->original = transform_core_cut (gdisp->gimage,
gimage_active_drawable (gdisp->gimage),
tool->drawable,
&new_layer);
pundo = paths_transform_start_undo(gdisp->gimage);
pundo = paths_transform_start_undo (gdisp->gimage);
/* Send the request for the transformation to the tool...
*/
......@@ -524,7 +526,8 @@ transform_core_doit (Tool *tool,
/* paste the new transformed image to the gimage...also implement
* undo...
*/
transform_core_paste (gdisp->gimage, gimage_active_drawable (gdisp->gimage),
/* FIXME: we should check if the drawable is still valid */
transform_core_paste (gdisp->gimage, tool->drawable,
new_tiles, new_layer);
/* create and initialize the transform_undo structure */
......
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