mirror of https://github.com/GNOME/gimp.git
update the drawable, not the image. This change was missing in the fix for
2007-11-05 Sven Neumann <sven@gimp.org> * app/core/gimpimagemap.c (gimp_image_map_clear): update the drawable, not the image. This change was missing in the fix for bug #490182. Fixes bug #493639. svn path=/trunk/; revision=24061
This commit is contained in:
parent
2d827be2f3
commit
2f77a15f39
|
@ -1,3 +1,9 @@
|
|||
2007-11-05 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimpimagemap.c (gimp_image_map_clear): update the
|
||||
drawable, not the image. This change was missing in the fix for
|
||||
bug #490182. Fixes bug #493639.
|
||||
|
||||
2007-11-05 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpcurveview.[ch]: added event handling and
|
||||
|
|
|
@ -456,20 +456,9 @@ gimp_image_map_clear (GimpImageMap *image_map)
|
|||
}
|
||||
else
|
||||
{
|
||||
GimpImage *image;
|
||||
gint off_x, off_y;
|
||||
|
||||
copy_region (&srcPR, &destPR);
|
||||
|
||||
image = gimp_item_get_image (GIMP_ITEM (image_map->drawable));
|
||||
|
||||
gimp_item_offsets (GIMP_ITEM (image_map->drawable), &off_x, &off_y);
|
||||
|
||||
/* Update the image -- It is important to call gimp_image_update()
|
||||
* instead of gimp_drawable_update() because we don't want the
|
||||
* drawable preview to be constantly invalidated
|
||||
*/
|
||||
gimp_image_update (image, x + off_x, y + off_y, width, height);
|
||||
gimp_drawable_update (image_map->drawable, x, y, width, height);
|
||||
}
|
||||
|
||||
/* Free the undo_tiles tile manager */
|
||||
|
|
Loading…
Reference in New Issue