[gimp] app: fix precision condition for indexed images



commit 4c83e208d4745263a191d6663feef6057c6fd2c6
Author: Simon Budig <simon budig de>
Date:   Sat Apr 28 18:21:37 2012 +0200

    app: fix precision condition for indexed images

 app/core/gimpimage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 65dc4ed..8f23b7d 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -1498,7 +1498,7 @@ gimp_image_new (Gimp              *gimp,
 {
   g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
   g_return_val_if_fail (base_type != GIMP_INDEXED ||
-                        precision != GIMP_PRECISION_U8, NULL);
+                        precision == GIMP_PRECISION_U8, NULL);
 
   return g_object_new (GIMP_TYPE_IMAGE,
                        "gimp",      gimp,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]