fix path import of polylines/polygons

This commit is contained in:
Simon Budig 2010-09-11 01:51:13 +02:00
parent 354a640e9e
commit 9ffaf94170
1 changed files with 5 additions and 4 deletions

View File

@ -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))