removed what seemed to be an extra call to drawable_update on the layer,
Sun Mar 15 20:39:12 CST 1998 Larry Ewing <lewing@gimp.org> * app/undo.c (undo_pop_layer_displace): removed what seemed to be an extra call to drawable_update on the layer, and added a call to update the layer->mask.
This commit is contained in:

committed by
Larry Ewing

parent
6ca0d72462
commit
cdf6fc5ac1
@ -1,3 +1,9 @@
|
||||
Sun Mar 15 20:39:12 CST 1998 Larry Ewing <lewing@gimp.org>
|
||||
|
||||
* app/undo.c (undo_pop_layer_displace): removed what seemed to be
|
||||
an extra call to drawable_update on the layer, and added a call to
|
||||
update the layer->mask.
|
||||
|
||||
Sun Mar 15 14:50:21 CST 1998 Larry Ewing <lewing@gimp.org>
|
||||
|
||||
* app/fileops.c (file_save_as_callback): fixed file Save As
|
||||
|
@ -803,15 +803,20 @@ undo_pop_layer_displace (GImage *gimage,
|
||||
{
|
||||
old_offsets[0] = GIMP_DRAWABLE(layer)->offset_x;
|
||||
old_offsets[1] = GIMP_DRAWABLE(layer)->offset_y;
|
||||
drawable_update (GIMP_DRAWABLE(layer), 0, 0, GIMP_DRAWABLE(layer)->width, GIMP_DRAWABLE(layer)->height);
|
||||
|
||||
GIMP_DRAWABLE(layer)->offset_x = info[1];
|
||||
GIMP_DRAWABLE(layer)->offset_y = info[2];
|
||||
drawable_update (GIMP_DRAWABLE(layer), 0, 0, GIMP_DRAWABLE(layer)->width, GIMP_DRAWABLE(layer)->height);
|
||||
drawable_update (GIMP_DRAWABLE(layer), 0, 0,
|
||||
GIMP_DRAWABLE(layer)->width,
|
||||
GIMP_DRAWABLE(layer)->height);
|
||||
|
||||
if (layer->mask)
|
||||
{
|
||||
GIMP_DRAWABLE(layer->mask)->offset_x = info[1];
|
||||
GIMP_DRAWABLE(layer->mask)->offset_y = info[2];
|
||||
drawable_update (GIMP_DRAWABLE(layer->mask), 0, 0,
|
||||
GIMP_DRAWABLE(layer->mask)->width,
|
||||
GIMP_DRAWABLE(layer->mask)->height);
|
||||
}
|
||||
|
||||
|
||||
|
@ -803,15 +803,20 @@ undo_pop_layer_displace (GImage *gimage,
|
||||
{
|
||||
old_offsets[0] = GIMP_DRAWABLE(layer)->offset_x;
|
||||
old_offsets[1] = GIMP_DRAWABLE(layer)->offset_y;
|
||||
drawable_update (GIMP_DRAWABLE(layer), 0, 0, GIMP_DRAWABLE(layer)->width, GIMP_DRAWABLE(layer)->height);
|
||||
|
||||
GIMP_DRAWABLE(layer)->offset_x = info[1];
|
||||
GIMP_DRAWABLE(layer)->offset_y = info[2];
|
||||
drawable_update (GIMP_DRAWABLE(layer), 0, 0, GIMP_DRAWABLE(layer)->width, GIMP_DRAWABLE(layer)->height);
|
||||
drawable_update (GIMP_DRAWABLE(layer), 0, 0,
|
||||
GIMP_DRAWABLE(layer)->width,
|
||||
GIMP_DRAWABLE(layer)->height);
|
||||
|
||||
if (layer->mask)
|
||||
{
|
||||
GIMP_DRAWABLE(layer->mask)->offset_x = info[1];
|
||||
GIMP_DRAWABLE(layer->mask)->offset_y = info[2];
|
||||
drawable_update (GIMP_DRAWABLE(layer->mask), 0, 0,
|
||||
GIMP_DRAWABLE(layer->mask)->width,
|
||||
GIMP_DRAWABLE(layer->mask)->height);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user