[gimp/metadata-browser] app: fix precision condition for indexed images
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: fix precision condition for indexed images
- Date: Thu, 13 Sep 2012 00:00:26 +0000 (UTC)
commit 2f9d8df3ce1169401efc4efcce801d08a0b59aa1
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]