[gimp] file-pnm: Fix direction of progressbar during load ;)



commit b6095b6fa5b1200004f1dadd79eaf5fca26be7d3
Author: Mukund Sivaraman <muks banu com>
Date:   Tue Jan 20 21:07:59 2015 +0530

    file-pnm: Fix direction of progressbar during load ;)

 plug-ins/common/file-pnm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-pnm.c b/plug-ins/common/file-pnm.c
index 63c1dd9..4be4737 100644
--- a/plug-ins/common/file-pnm.c
+++ b/plug-ins/common/file-pnm.c
@@ -952,7 +952,7 @@ pnm_load_rawpfm (PNMScanner *scan,
                        NULL, data, GEGL_AUTO_ROWSTRIDE);
 
       if (y % 32 == 0)
-        gimp_progress_update ((double) y / (double) info->yres);
+        gimp_progress_update ((double) (info->yres - y) / (double) info->yres);
     }
 
   g_free (data);


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