[gimp] app: fix projection and display render chunk-size envvars



commit 69b7cda375ff481001af30c3fd3cef51c7ec555c
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Jun 4 02:06:55 2014 +0200

    app: fix projection and display render chunk-size envvars

 app/core/gimpprojection.c     |    2 +-
 app/display/gimpdisplayxfer.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpprojection.c b/app/core/gimpprojection.c
index d6b435f..eb649c6 100644
--- a/app/core/gimpprojection.c
+++ b/app/core/gimpprojection.c
@@ -213,7 +213,7 @@ gimp_projection_class_init (GimpProjectionClass *klass)
 
       env = strchr (env, 'x');
       if (env)
-        height = atoi (env);
+        height = atoi (env + 1);
 
       if (width  > 0 && width  <= 8192 &&
           height > 0 && height <= 8192)
diff --git a/app/display/gimpdisplayxfer.c b/app/display/gimpdisplayxfer.c
index 352314e..f9665b4 100644
--- a/app/display/gimpdisplayxfer.c
+++ b/app/display/gimpdisplayxfer.c
@@ -220,7 +220,7 @@ gimp_display_xfer_realize (GtkWidget *widget)
 
       env = strchr (env, 'x');
       if (env)
-        height = atoi (env);
+        height = atoi (env + 1);
 
       if (width  > 0 && width  <= 8192 &&
           height > 0 && height <= 8192)


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