summaryrefslogtreecommitdiffstats
path: root/src/helper/geom.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-01-08 21:04:22 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-01-08 21:04:22 +0000
commit0adad6cc5da5e601747f3311485532a342d4a164 (patch)
tree1696e3cd6d5c89adace852a1653580dc0df70f02 /src/helper/geom.cpp
parentsmall code clarification, doesn't change anything, but makes intent more clear (diff)
downloadinkscape-0adad6cc5da5e601747f3311485532a342d4a164.tar.gz
inkscape-0adad6cc5da5e601747f3311485532a342d4a164.zip
fix warning, update comments
(bzr r12896)
Diffstat (limited to 'src/helper/geom.cpp')
-rw-r--r--src/helper/geom.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/helper/geom.cpp b/src/helper/geom.cpp
index df0e4fcf2..c9148a634 100644
--- a/src/helper/geom.cpp
+++ b/src/helper/geom.cpp
@@ -495,13 +495,13 @@ pathv_to_linear_and_cubic_beziers( Geom::PathVector const &pathv )
/*
* Converts all segments in all paths to Geom::LineSegment. There is an intermediate
* stage where some may be converted to beziers. maxdisp is the maximum displacement from
- * the line segment to the bezier curve.
+ * the line segment to the bezier curve; ** maxdisp is not used at this moment **.
*
* This is NOT a terribly fast method, but it should give a solution close to the one with the
* fewest points.
*/
Geom::PathVector
-pathv_to_linear( Geom::PathVector const &pathv, double maxdisp)
+pathv_to_linear( Geom::PathVector const &pathv, double /*maxdisp*/)
{
Geom::PathVector output;
Geom::PathVector tmppath = pathv_to_linear_and_cubic_beziers(pathv);
@@ -536,12 +536,11 @@ pathv_to_linear( Geom::PathVector const &pathv, double maxdisp)
pointlist,
0);
pointlist.push_back(D);
- Geom::Point r0;
Geom::Point r1 = pointlist[0];
for (unsigned int i=1; i<pointlist.size();i++){
- r0 = r1;
+ Geom::Point prev_r1 = r1;
r1 = pointlist[i];
- Geom::LineSegment ls(r0, r1);
+ Geom::LineSegment ls(prev_r1, r1);
output.back().append(ls);
}
pointlist.clear();