Commit ae49a36f authored by scott's avatar scott

Fixed merge bug. --sg

Fixed merge bug.
--sg
parent d2c6ecd2
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. :)
......
......@@ -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));
......
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