diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-08-03 02:59:51 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-08-03 02:59:51 +0000 |
| commit | 6c9db18d18960fad5b06da17226355546c52f1a6 (patch) | |
| tree | 7377a4a70ef306bb6e1333e1f56d94b6063fc8b9 /src/nodepath.cpp | |
| parent | simplify lpe spiro code by using new "is_straight_curve" method (diff) | |
| download | inkscape-6c9db18d18960fad5b06da17226355546c52f1a6.tar.gz inkscape-6c9db18d18960fad5b06da17226355546c52f1a6.zip | |
hopefully fixed last error in nodepath...
(bzr r6539)
Diffstat (limited to 'src/nodepath.cpp')
| -rw-r--r-- | src/nodepath.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp index 76fccaf64..f2ca1e84c 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -534,7 +534,8 @@ static void subpaths_from_pathvector(Inkscape::NodePath::Path *np, Geom::PathVec { NR::Point pos = from_2geom(cit->initialPoint()) * np->i2d; sp_nodepath_node_new(sp, NULL, t[i++], pcode, &ppos, &pos, &pos); - ppos = from_2geom(cit->finalPoint()); + + ppos = from_2geom(cit->finalPoint()) * np->i2d; pcode = NR_LINETO; } else if(Geom::CubicBezier const *cubic_bezier = dynamic_cast<Geom::CubicBezier const*>(&*cit)) { @@ -542,6 +543,7 @@ static void subpaths_from_pathvector(Inkscape::NodePath::Path *np, Geom::PathVec NR::Point pos = from_2geom(points[0]) * np->i2d; NR::Point npos = from_2geom(points[1]) * np->i2d; sp_nodepath_node_new(sp, NULL, t[i++], pcode, &ppos, &pos, &npos); + ppos = from_2geom(points[2]) * np->i2d; pcode = NR_CURVETO; } |
