[gegl] operations: minor clean-up



commit d39c4f98b6718ec5bdc0eefaf4fcf51c4da0f888
Author: Téo Mazars <teomazars gmail com>
Date:   Sat Feb 22 12:15:13 2014 +0100

    operations: minor clean-up

 operations/external/png-save.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/operations/external/png-save.c b/operations/external/png-save.c
index f192e26..18d9033 100644
--- a/operations/external/png-save.c
+++ b/operations/external/png-save.c
@@ -87,12 +87,7 @@ gegl_buffer_export_png (GeglBuffer  *gegl_buffer,
     }
 
   {
-    const Babl *babl; /*= gegl_buffer->format;*/
-
-    g_object_get (gegl_buffer, "format", &babl, NULL);
-
-    if (babl_format_get_type (babl, 0) != babl_type ("u8"))
-      bit_depth = 16;
+    const Babl *babl = gegl_buffer_get_format (gegl_buffer);
 
     if (bd == 16)
       bit_depth = 16;


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