[gimp] fix path import of polylines/polygons



commit 9ffaf94170269b9ee976b772d1319fac8cbf24c6
Author: Simon Budig <simon budig de>
Date:   Sat Sep 11 01:51:13 2010 +0200

    fix path import of polylines/polygons

 app/vectors/gimpvectors-import.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/app/vectors/gimpvectors-import.c b/app/vectors/gimpvectors-import.c
index 8b305cd..9a0d042 100644
--- a/app/vectors/gimpvectors-import.c
+++ b/app/vectors/gimpvectors-import.c
@@ -369,11 +369,11 @@ gimp_vectors_import (GimpImage    *image,
         {
           if (filename)
             g_set_error (error, GIMP_ERROR, GIMP_FAILED,
-			 _("No paths found in '%s'"),
+                         _("No paths found in '%s'"),
                          gimp_filename_to_utf8 (filename));
           else
             g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
-				 _("No paths found in the buffer"));
+                                 _("No paths found in the buffer"));
 
           success = FALSE;
         }
@@ -994,10 +994,11 @@ svg_handler_poly_start (SvgHandler   *handler,
                       break;
                     }
 
+                  if (*p)
+                    n++;
+
                   while (*p && !g_ascii_isspace (*p) && *p != ',')
                     p++;
-
-                  n++;
                 }
 
               if ((n > 3) && (n % 2 == 0))



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