summaryrefslogtreecommitdiffstats
path: root/src/helper
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-01-24 14:17:37 +0000
committerJabiertxof <jtx@jtx>2017-01-24 14:17:37 +0000
commit6065dda92002a05f31d58ce373bbcccdbe761907 (patch)
tree376d1a771f47d66b714ed28cd3563f3d9ad838b4 /src/helper
parentfixing to new trunk (diff)
parentFix a translation bug in rotate copies LPE (diff)
downloadinkscape-6065dda92002a05f31d58ce373bbcccdbe761907.tar.gz
inkscape-6065dda92002a05f31d58ce373bbcccdbe761907.zip
Update to trunk
(bzr r15142.1.39)
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/geom.cpp7
-rw-r--r--src/helper/geom.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/helper/geom.cpp b/src/helper/geom.cpp
index 42c494c00..e1f05c3ce 100644
--- a/src/helper/geom.cpp
+++ b/src/helper/geom.cpp
@@ -843,6 +843,13 @@ recursive_bezier4(const double x1, const double y1,
recursive_bezier4(x1234, y1234, x234, y234, x34, y34, x4, y4, m_points, level + 1);
}
+void
+swap(Geom::Point &A, Geom::Point &B){
+ Geom::Point tmp = A;
+ A = B;
+ B = tmp;
+}
+
/*
Local Variables:
mode:c++
diff --git a/src/helper/geom.h b/src/helper/geom.h
index d49e2070c..b3d907e51 100644
--- a/src/helper/geom.h
+++ b/src/helper/geom.h
@@ -32,7 +32,7 @@ void recursive_bezier4(const double x1, const double y1, const double x2, const
const double x3, const double y3, const double x4, const double y4,
std::vector<Geom::Point> &pointlist,
int level);
-
+void swap(Geom::Point &A, Geom::Point &B);
#endif // INKSCAPE_HELPER_GEOM_H
/*