fixed handling of pixel region that broke with my latest change. Fixes bug

2005-02-03  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagemap.c (gimp_image_map_do): fixed handling of
	pixel region that broke with my latest change. Fixes bug #166126.
This commit is contained in:
Sven Neumann 2005-02-03 16:09:47 +00:00 committed by Sven Neumann
parent 19036efb36
commit 5b75565650
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2005-02-03 Sven Neumann <sven@gimp.org>
* app/core/gimpimagemap.c (gimp_image_map_do): fixed handling of
pixel region that broke with my latest change. Fixes bug #166126.
2005-02-03 Sven Neumann <sven@gimp.org>
* app/main.c: some cleanup in main().

View File

@ -535,8 +535,6 @@ gimp_image_map_do (GimpImageMap *image_map)
return FALSE;
}
pixel_region_init (&shadowPR, gimage->shadow, 0, 0, 0, 0, FALSE);
/* Process up to 16 tiles in one go. This reduces the overhead
* caused by updating the display while the imagemap is being
* applied and gives us a tiny speedup.
@ -554,7 +552,7 @@ gimp_image_map_do (GimpImageMap *image_map)
w = image_map->destPR.w;
h = image_map->destPR.h;
pixel_region_resize (&shadowPR, x, y, w, h);
pixel_region_init (&shadowPR, gimage->shadow, x, y, w, h, FALSE);
gimp_drawable_apply_region (image_map->drawable, &shadowPR,
FALSE, NULL,