diff --git a/ChangeLog b/ChangeLog index 5c73e09491..06368fed6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-05 Sven Neumann + + * 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 * app/widgets/gimpcurveview.[ch]: added event handling and diff --git a/app/core/gimpimagemap.c b/app/core/gimpimagemap.c index 7103047487..502751817f 100644 --- a/app/core/gimpimagemap.c +++ b/app/core/gimpimagemap.c @@ -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 */