summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2015-04-27 23:39:29 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2015-04-27 23:39:29 +0000
commitc883d7627a479c8c5b6a9f77b9841fa5631572ad (patch)
treefba1186e26a8cc85a1b0728425bef6f2e9aeccd9 /src/splivarot.cpp
parentextensions. ink2canvas.py - do not parse html comments. (Bug 1446204) (diff)
downloadinkscape-c883d7627a479c8c5b6a9f77b9841fa5631572ad.tar.gz
inkscape-c883d7627a479c8c5b6a9f77b9841fa5631572ad.zip
2Geom sync - initial commit
(bzr r14059.2.1)
Diffstat (limited to '')
-rw-r--r--src/splivarot.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index 46279cbce..95bd179f9 100644
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
@@ -305,8 +305,7 @@ sp_pathvector_boolop(Geom::PathVector const &pathva, Geom::PathVector const &pat
delete originaux[0];
delete originaux[1];
- std::vector<Geom::Path> outres = Geom::parse_svg_path(res->svg_dump_path());
-
+ Geom::PathVector outres = Geom::parse_svg_path(res->svg_dump_path());
delete res;
return outres;
@@ -315,7 +314,7 @@ sp_pathvector_boolop(Geom::PathVector const &pathva, Geom::PathVector const &pat
/* Convert from a livarot path to a 2geom PathVector */
Geom::PathVector pathliv_to_pathvector(Path *pathliv){
- std::vector<Geom::Path> outres = Geom::parse_svg_path(pathliv->svg_dump_path());
+ Geom::PathVector outres = Geom::parse_svg_path(pathliv->svg_dump_path());
return outres;
}
@@ -2273,15 +2272,11 @@ Ancetre(Inkscape::XML::Node *a, Inkscape::XML::Node *who)
}
// derived from Path_for_item
-// there must be some other way to load dest directly from epathv, without going through pathv...
Path *
Path_for_pathvector(Geom::PathVector const &epathv)
{
- Geom::PathVector *pathv = new Geom::PathVector;
- std::copy(epathv.begin(), epathv.end(), std::back_inserter(*pathv));
-
Path *dest = new Path;
- dest->LoadPathVector(*pathv);
+ dest->LoadPathVector(epathv);
delete pathv;
return dest;