summaryrefslogtreecommitdiffstats
path: root/src/svg/svg-length.cpp
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-08-03 16:55:11 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-08-03 16:55:11 +0000
commitc935444b90a29e270371f1afee773104dc314e88 (patch)
tree5f25adda9dcc4b363980c298ea13fbc976412b5c /src/svg/svg-length.cpp
parentFixed building of tests. (diff)
downloadinkscape-c935444b90a29e270371f1afee773104dc314e88.tar.gz
inkscape-c935444b90a29e270371f1afee773104dc314e88.zip
Fix handling of SVG lengths with spaces [Bug #1208002].
(bzr r12380.1.61)
Diffstat (limited to 'src/svg/svg-length.cpp')
-rw-r--r--src/svg/svg-length.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/svg/svg-length.cpp b/src/svg/svg-length.cpp
index 7f93f9f0f..ea438e91a 100644
--- a/src/svg/svg-length.cpp
+++ b/src/svg/svg-length.cpp
@@ -330,6 +330,8 @@ static unsigned sp_svg_length_read_lff(gchar const *str, SVGLength::Unit *unit,
*next = (char *) e + 1;
}
return 1;
+ } else if (g_ascii_isspace(e[0])) {
+ return 0; // spaces are not allowed
} else {
/* Unitless */
if (unit) {