Code

don't use splivarot to get livarot path, just use LoadPathVector method
authorjohanengelen <johanengelen@users.sourceforge.net>
Thu, 26 Jun 2008 15:17:50 +0000 (15:17 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Thu, 26 Jun 2008 15:17:50 +0000 (15:17 +0000)
src/nodepath.cpp

index 8f4f9a7e735d87ea4223ecc2622cbf026d11cec3..f4be1c30c71dd7a9fcb2f738712e442374047613 100644 (file)
@@ -341,8 +341,8 @@ void sp_nodepath_ensure_livarot_path(Inkscape::NodePath::Path *np)
 {
     if (np && np->livarot_path == NULL) {
         SPCurve *curve = create_curve(np);
-        NArtBpath const *bpath = SP_CURVE_BPATH(curve);
-        np->livarot_path = bpath_to_Path(bpath);
+        np->livarot_path = new Path;
+        np->livarot_path->LoadPathVector(curve->get_pathvector(), Geom::Matrix(), false);
 
         if (np->livarot_path)
             np->livarot_path->ConvertWithBackData(0.01);