Commit ef348956 authored by Garry R. Osgood's avatar Garry R. Osgood Committed by Garry R. Osgood
Browse files

*app/undo.c: GimpChannel->bounds_known field on the image Selection Mask

2000-01-05  Garry R. Osgood <gosgood@idt.net>
*app/undo.c: GimpChannel->bounds_known field on the
image Selection Mask channel was never invalidated when restored
via undo_pop_channel_mod(). Caused PixelRegion iterators calculating
new selection boundaries to use cached image dimensions, thereby
trying to access tiles non-existent in the scaled-down image.
Closes #4840.
parent ee6ad0e2
2000-01-05 Garry R. Osgood <gosgood@idt.net>
*app/undo.c: GimpChannel->bounds_known field on the
image Selection Mask channel was never invalidated when restored
via undo_pop_channel_mod(). Caused PixelRegion iterators calculating
new selection boundaries to use cached image dimensions, thereby
trying to access tiles non-existent in the scaled-down image.
Closes #4840; see the resolution report for that bug for more
information. See #4980, which created selection mask artifacts
leading up to the incurring of this bug.
2000-01-05 Michael Natterer <mitch@gimp.org>
 
* app/gimphelp.[ch]: removed most functions. Show the help page in
......
......@@ -1868,6 +1868,8 @@ undo_pop_channel_mod (GImage *gimage,
GIMP_DRAWABLE(channel)->tiles = tiles;
GIMP_DRAWABLE(channel)->width = tiles->width;
GIMP_DRAWABLE(channel)->height = tiles->height;
GIMP_CHANNEL(channel)->bounds_known = FALSE; /* #4840. set to False because bounds
reflect previous tile set */
/* Set the new buffer */
data[1] = temp;
......
......@@ -1868,6 +1868,8 @@ undo_pop_channel_mod (GImage *gimage,
GIMP_DRAWABLE(channel)->tiles = tiles;
GIMP_DRAWABLE(channel)->width = tiles->width;
GIMP_DRAWABLE(channel)->height = tiles->height;
GIMP_CHANNEL(channel)->bounds_known = FALSE; /* #4840. set to False because bounds
reflect previous tile set */
/* Set the new buffer */
data[1] = temp;
......
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