use the proper image type and rowstride. Fixes bug #162592.

2004-12-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_preview.c (render_rgb_image): use the proper
	image type and rowstride. Fixes bug #162592.
This commit is contained in:
Sven Neumann 2004-12-31 02:42:10 +00:00 committed by Sven Neumann
parent 41cb3fd572
commit 4df339c091
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-12-31 Sven Neumann <sven@gimp.org>
* plug-ins/imagemap/imap_preview.c (render_rgb_image): use the proper
image type and rowstride. Fixes bug #162592.
2004-12-30 Manish Singh <yosh@gimp.org>
* 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 <weskaggs@primate.ucdavis.edu>
* tools/pdbgen/pdb/brush.pdb: added api for changing properties

View file

@ -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);