diff options
| author | Matthew Petroff <matthew@mpetroff.net> | 2013-08-03 16:55:11 +0000 |
|---|---|---|
| committer | Matthew Petroff <matthew@mpetroff.net> | 2013-08-03 16:55:11 +0000 |
| commit | c935444b90a29e270371f1afee773104dc314e88 (patch) | |
| tree | 5f25adda9dcc4b363980c298ea13fbc976412b5c /src/svg | |
| parent | Fixed building of tests. (diff) | |
| download | inkscape-c935444b90a29e270371f1afee773104dc314e88.tar.gz inkscape-c935444b90a29e270371f1afee773104dc314e88.zip | |
Fix handling of SVG lengths with spaces [Bug #1208002].
(bzr r12380.1.61)
Diffstat (limited to 'src/svg')
| -rw-r--r-- | src/svg/svg-length.cpp | 2 |
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) { |
