diff --git a/ChangeLog b/ChangeLog index 439bb093a4..f413722476 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-26 Manish Singh + + * plug-ins/common/dog.c: make sure the preview image type matches + the source image type. + 2004-11-26 Sven Neumann * plug-ins/winicon/icosave.c: don't fiddle with the source image, diff --git a/plug-ins/common/dog.c b/plug-ins/common/dog.c index a6f632a762..c4a93bb1f5 100755 --- a/plug-ins/common/dog.c +++ b/plug-ins/common/dog.c @@ -496,7 +496,7 @@ compute_difference (GimpDrawable *drawable, return; bpp = drawable->bpp; - has_alpha = gimp_drawable_has_alpha(drawable->drawable_id); + has_alpha = gimp_drawable_has_alpha (drawable->drawable_id); gimp_pixel_rgn_init (&src1_rgn, drawable1, 0, 0, drawable1->width, drawable1->height, @@ -925,7 +925,7 @@ preview_update_preview (GimpPreview *preview, guchar *buffer; GimpPixelRgn src_rgn; GimpPixelRgn preview_rgn; - gint32 image_id; + gint32 image_id, src_image_id; gint32 preview_id; GimpDrawable *preview_drawable; @@ -942,7 +942,9 @@ preview_update_preview (GimpPreview *preview, x1, y1, width, height); /* set up gimp drawable for rendering preview into */ - image_id = gimp_image_new (width, height, GIMP_RGB); + src_image_id = gimp_drawable_get_image (drawable->drawable_id); + image_id = gimp_image_new (width, height, + gimp_image_base_type (src_image_id)); preview_id = gimp_layer_new (image_id, "preview", width, height, gimp_drawable_type (drawable->drawable_id), 100,