From 4df339c09152a5f49f4c44a47ea5fef976cb16e5 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 31 Dec 2004 02:42:10 +0000 Subject: [PATCH] use the proper image type and rowstride. Fixes bug #162592. 2004-12-31 Sven Neumann * plug-ins/imagemap/imap_preview.c (render_rgb_image): use the proper image type and rowstride. Fixes bug #162592. --- ChangeLog | 8 ++++++++ plug-ins/imagemap/imap_preview.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e17a12cc8..741f3dd937 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-12-31 Sven Neumann + + * plug-ins/imagemap/imap_preview.c (render_rgb_image): use the proper + image type and rowstride. Fixes bug #162592. + 2004-12-30 Manish Singh * tools/Makefile.am @@ -13,6 +18,9 @@ * configure.in: bumped gimp_app_version and gimp_user_version to 2.3. + * app/Makefile.am + * tools/Makefile.am: changed to 2.3. + 2004-12-30 Bill Skaggs * tools/pdbgen/pdb/brush.pdb: added api for changing properties diff --git a/plug-ins/imagemap/imap_preview.c b/plug-ins/imagemap/imap_preview.c index d28b0070d5..2657432c2c 100644 --- a/plug-ins/imagemap/imap_preview.c +++ b/plug-ins/imagemap/imap_preview.c @@ -256,9 +256,9 @@ render_rgb_image(Preview_t *preview_base, GimpPixelRgn *srcrgn) } gimp_preview_area_draw (GIMP_PREVIEW_AREA (preview), 0, 0, pwidth, pheight, - gimp_drawable_type (srcrgn->drawable->drawable_id), + GIMP_RGB_IMAGE, dest_buffer, - pwidth * bpp); + pwidth * 3); g_free(src_col); g_free(src_row); g_free(dest_buffer);