summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/array.h
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-05-10 21:16:49 +0000
committerjabiertxof <info@marker.es>2016-05-10 21:16:49 +0000
commit07717a370b8efe6ddbb0c69d115bb063a2e7686a (patch)
treedf507f7bc83681ce315137c5828ce6c8b24cdf76 /src/live_effects/parameter/array.h
parentupdate to trunk (diff)
downloadinkscape-07717a370b8efe6ddbb0c69d115bb063a2e7686a.tar.gz
inkscape-07717a370b8efe6ddbb0c69d115bb063a2e7686a.zip
Working with path updates
(bzr r13645.1.130)
Diffstat (limited to 'src/live_effects/parameter/array.h')
-rw-r--r--src/live_effects/parameter/array.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/live_effects/parameter/array.h b/src/live_effects/parameter/array.h
index 7076a465f..64d01650c 100644
--- a/src/live_effects/parameter/array.h
+++ b/src/live_effects/parameter/array.h
@@ -51,7 +51,7 @@ public:
virtual bool param_readSVGValue(const gchar * strvalue) {
_vector.clear();
- gchar ** strarray = g_strsplit(strvalue, "|", 0);
+ gchar ** strarray = g_strsplit(strvalue, " | ", 0);
gchar ** iter = strarray;
while (*iter != NULL) {
_vector.push_back( readsvg(*iter) );
@@ -112,6 +112,10 @@ protected:
void writesvgData(SVGOStringStream &str, std::vector<Satellite> const &nVector) const {
for (size_t i = 0; i < nVector.size(); ++i) {
+ if (i != 0) {
+ // separate items with @ symbol ¿Any other?
+ str << " @ ";
+ }
str << nVector[i].getSatelliteTypeGchar();
str << ",";
str << nVector[i].is_time;
@@ -125,9 +129,6 @@ protected:
str << nVector[i].angle;
str << ",";
str << nVector[i].steps;
- if (i != nVector.size()-1) {
- str << "@";
- }
}
}