[gimp/goat-invasion] libgimp: fix swapped alpha handling in indexed case



commit ff96addb22a56951a011bac2603e8f0480d16f17
Author: Simon Budig <simon budig de>
Date:   Sat Apr 28 17:19:51 2012 +0200

    libgimp: fix swapped alpha handling in indexed case

 libgimp/gimpdrawable.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgimp/gimpdrawable.c b/libgimp/gimpdrawable.c
index 18eeda2..f7d9f2a 100644
--- a/libgimp/gimpdrawable.c
+++ b/libgimp/gimpdrawable.c
@@ -762,9 +762,9 @@ gimp_drawable_get_format (gint32 drawable_ID)
           g_free (colormap);
 
           if (gimp_drawable_has_alpha (drawable_ID))
-            format = palette;
-          else
             format = palette_alpha;
+          else
+            format = palette;
         }
       else
         {



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