summaryrefslogtreecommitdiffstats
path: root/src/svg
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-09-12 21:14:17 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-09-12 21:14:17 +0000
commit626f3946684ea961d126c86b1ea0edda12ae0562 (patch)
treeba021504302e050e46395efc1686961d51acbcce /src/svg
parentFix handling of SVG lengths with spaces between value and unit (hopefully wit... (diff)
downloadinkscape-626f3946684ea961d126c86b1ea0edda12ae0562.tar.gz
inkscape-626f3946684ea961d126c86b1ea0edda12ae0562.zip
Forgot check in last commit.
(bzr r12509)
Diffstat (limited to 'src/svg')
-rw-r--r--src/svg/svg-length.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/svg-length.cpp b/src/svg/svg-length.cpp
index 09662991b..bb6cc5428 100644
--- a/src/svg/svg-length.cpp
+++ b/src/svg/svg-length.cpp
@@ -334,7 +334,7 @@ So after the number, the string does not necessarily have a \0 or a unit, it mig
*next = (char *) e + 1;
}
return 1;
- } else if (g_ascii_isspace(e[0]) && g_ascii_isalpha(e[1])) {
+ } else if (g_ascii_isspace(e[0]) && e[1] && g_ascii_isalpha(e[1])) {
return 0; // spaces between value and unit are not allowed
} else {
/* Unitless */