plug-ins: compare gimp_image_base_type() to GIMP_RGB, not GIMP_RGB_IMAGE

because the latter is from the wrong enum.
This commit is contained in:
Michael Natterer 2011-03-17 15:44:47 +01:00
parent d23c0d3fdf
commit 98e5c32f00
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ film (void)
height = gimp_image_height (image_ID_tmp); height = gimp_image_height (image_ID_tmp);
f = ((gdouble) picture_height) / (gdouble) height; f = ((gdouble) picture_height) / (gdouble) height;
picture_width = width * f; picture_width = width * f;
if (gimp_image_base_type (image_ID_tmp) != GIMP_RGB_IMAGE) if (gimp_image_base_type (image_ID_tmp) != GIMP_RGB)
gimp_image_convert_rgb (image_ID_tmp); gimp_image_convert_rgb (image_ID_tmp);
gimp_image_scale (image_ID_tmp, picture_width, picture_height); gimp_image_scale (image_ID_tmp, picture_width, picture_height);