[gimp] plugin: Fix gih exporter to default first rank equal to number of cells



commit 6e332505ca94a38cfad7633fa4340e2f5b1ed990
Author: Alexia Death <alexiadeath gmail com>
Date:   Sun Apr 28 22:19:44 2013 +0300

    plugin: Fix gih exporter to default first rank equal to number of cells

 plug-ins/common/file-gih.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-gih.c b/plug-ins/common/file-gih.c
index 4790091..92c550a 100644
--- a/plug-ins/common/file-gih.c
+++ b/plug-ins/common/file-gih.c
@@ -338,6 +338,10 @@ run (const gchar      *name,
             gimp_pixpipe_params_parse (gimp_parasite_data (pipe_parasite),
                                        &gihparams);
 
+          /* Force default rank to same as number of cells if there is just one dim */
+          if (gihparams.dim == 1)
+            gihparams.rank[0] = gihparams.ncells;
+
           if (!gih_save_dialog (image_ID))
             status = GIMP_PDB_CANCEL;
           break;


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