[gimp/gimp-2-6] file-mng: Specify the interlace type explicitly (cherry picked from commit cbc2ffc7c2cd2103c81064d56



commit 48624d10c17adca9b6876f463c42dd712a89b49f
Author: Mukund Sivaraman <muks banu com>
Date:   Fri May 6 16:17:56 2011 +0530

    file-mng: Specify the interlace type explicitly
    (cherry picked from commit cbc2ffc7c2cd2103c81064d56b135fd66987422c)

 plug-ins/common/file-mng.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-mng.c b/plug-ins/common/file-mng.c
index 75fd23e..58a35bc 100644
--- a/plug-ins/common/file-mng.c
+++ b/plug-ins/common/file-mng.c
@@ -1039,7 +1039,7 @@ mng_save_image (const gchar  *filename,
       png_set_IHDR (pp, info, layer_cols, layer_rows,
                 bit_depth,
                 color_type,
-                (mng_data.interlaced == 0 ? 0 : 1),
+                mng_data.interlaced ? PNG_INTERLACE_ADAM7 : PNG_INTERLACE_NONE,
                 PNG_COMPRESSION_TYPE_BASE,
                 PNG_FILTER_TYPE_BASE);
       png_set_compression_level (pp, mng_data.compression_level);



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