summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 */