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:
CST 1998 Larry Ewing
1998-03-16 02:41:19 +00:00
committed by Larry Ewing
parent 6ca0d72462
commit cdf6fc5ac1
3 changed files with 20 additions and 4 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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);
}