summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/array.h
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-05-08 20:57:37 +0000
committerjabiertxof <info@marker.es>2016-05-08 20:57:37 +0000
commit97bd182d6a2113eab1dd5faf51402ebd5382791c (patch)
tree272e95fb4951a821dbd5f416cd19250dcc278819 /src/live_effects/parameter/array.h
parentupdate to trunk (diff)
downloadinkscape-97bd182d6a2113eab1dd5faf51402ebd5382791c.tar.gz
inkscape-97bd182d6a2113eab1dd5faf51402ebd5382791c.zip
First attempt to make fixed tweenk review
(bzr r13645.1.128)
Diffstat (limited to 'src/live_effects/parameter/array.h')
-rw-r--r--src/live_effects/parameter/array.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/src/live_effects/parameter/array.h b/src/live_effects/parameter/array.h
index 66ed6344b..7076a465f 100644
--- a/src/live_effects/parameter/array.h
+++ b/src/live_effects/parameter/array.h
@@ -110,22 +110,25 @@ protected:
str << nVector;
}
- void writesvgData(SVGOStringStream &str, Satellite const &nVector) const {
- str << nVector.getSatelliteTypeGchar();
- str << ",";
- str << nVector.is_time;
- str << ",";
- str << nVector.active;
- str << ",";
- str << nVector.has_mirror;
- str << ",";
- str << nVector.hidden;
- str << ",";
- str << nVector.amount;
- str << ",";
- str << nVector.angle;
- str << ",";
- str << nVector.steps;
+ void writesvgData(SVGOStringStream &str, std::vector<Satellite> const &nVector) const {
+ for (size_t i = 0; i < nVector.size(); ++i) {
+ str << nVector[i].getSatelliteTypeGchar();
+ str << ",";
+ str << nVector[i].is_time;
+ str << ",";
+ str << nVector[i].has_mirror;
+ str << ",";
+ str << nVector[i].hidden;
+ str << ",";
+ str << nVector[i].amount;
+ str << ",";
+ str << nVector[i].angle;
+ str << ",";
+ str << nVector[i].steps;
+ if (i != nVector.size()-1) {
+ str << "@";
+ }
+ }
}
StorageType readsvg(const gchar * str);