From 4c83e208d4745263a191d6663feef6057c6fd2c6 Mon Sep 17 00:00:00 2001 From: Simon Budig Date: Sat, 28 Apr 2012 18:21:37 +0200 Subject: [PATCH] app: fix precision condition for indexed images --- app/core/gimpimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c index 65dc4ed387..8f23b7d761 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,