[gimp] plug-ins: compare gimp_image_base_type() to GIMP_RGB, not GIMP_RGB_IMAGE
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: compare gimp_image_base_type() to GIMP_RGB, not GIMP_RGB_IMAGE
- Date: Thu, 17 Mar 2011 14:45:40 +0000 (UTC)
commit 98e5c32f009962e0c5de7718749e38e1a630cd73
Author: Michael Natterer <mitch gimp org>
Date: Thu Mar 17 15:44:47 2011 +0100
plug-ins: compare gimp_image_base_type() to GIMP_RGB, not GIMP_RGB_IMAGE
because the latter is from the wrong enum.
plug-ins/common/film.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/film.c b/plug-ins/common/film.c
index 0302d3e..c7559ff 100644
--- a/plug-ins/common/film.c
+++ b/plug-ins/common/film.c
@@ -470,7 +470,7 @@ film (void)
height = gimp_image_height (image_ID_tmp);
f = ((gdouble) picture_height) / (gdouble) height;
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_scale (image_ID_tmp, picture_width, picture_height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]