summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
authorkamalpreetgrewal <grewalkamal005@gmail.com>2016-06-06 16:23:12 +0000
committerkamalpreetgrewal <grewalkamal005@gmail.com>2016-06-06 16:23:12 +0000
commit782b586b9fd93b05e3dbc960ccd006014d32c5ac (patch)
treeac7a0304cd3224731235fd2b688f12d04f1501e6 /src/style-internal.cpp
parentRegister style dialog with support to add selector (diff)
parent[Bug #1588983] Finish up German tutorials for 0.92. (diff)
downloadinkscape-782b586b9fd93b05e3dbc960ccd006014d32c5ac.tar.gz
inkscape-782b586b9fd93b05e3dbc960ccd006014d32c5ac.zip
Merging changes from trunk
(bzr r14949.1.2)
Diffstat (limited to 'src/style-internal.cpp')
-rw-r--r--src/style-internal.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp
index b425a1c80..62b0de52d 100644
--- a/src/style-internal.cpp
+++ b/src/style-internal.cpp
@@ -1810,9 +1810,11 @@ SPIDashArray::read( gchar const *str ) {
return;
}
+ // std::vector<Glib::ustring> tokens = Glib::Regex::split_simple("[,\\s]+", str );
+
gchar *e = NULL;
bool LineSolid = true;
- while (e != str) {
+ while (e != str && *str != '\0') {
/* TODO: Should allow <length> rather than just a unitless (px) number. */
double number = g_ascii_strtod(str, (char **) &e);
values.push_back( number );
@@ -1821,7 +1823,7 @@ SPIDashArray::read( gchar const *str ) {
if (e != str) {
str = e;
}
- while (str && *str && !isalnum(*str)) str += 1;
+ while (str && *str && !(isalnum(*str) || *str=='.')) str += 1;
}
if (LineSolid) {