Fixed merge bug. --sg

Fixed merge bug.
--sg
This commit is contained in:
scott 1998-01-26 02:33:05 +00:00
parent d2c6ecd2d9
commit ae49a36f46
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
Sun Jan 25 16:56:49 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* app/gimage.c (gimage_merge_layers): Added a missing call to
drawable_offsets, fixing the "merge bug".
* app/gimage_cmds.c (duplicate): Fixed a bug in duplicate that was
entirely my fault. :)

View File

@ -1871,6 +1871,7 @@ gimage_merge_layers (GImage *gimage, link_ptr merge_list, MergeType merge_type)
while (merge_list)
{
layer = (Layer *) merge_list->data;
drawable_offsets (GIMP_DRAWABLE(layer), &off_x, &off_y);
switch (merge_type)
{
@ -1905,7 +1906,6 @@ gimage_merge_layers (GImage *gimage, link_ptr merge_list, MergeType merge_type)
case ClipToBottomLayer:
if (merge_list->next == NULL)
{
drawable_offsets (GIMP_DRAWABLE(layer), &off_x, &off_y);
x1 = off_x;
y1 = off_y;
x2 = off_x + drawable_width (GIMP_DRAWABLE(layer));