Code

box3d_side_write now uses curve->get_pathvector instead of get_bpath.
[inkscape.git] / src / box3d-side.cpp
index 4bd10e854d3c984e0c62f3ca0e6d4e0b16dc55b9..fba61e12914b4bc58714ae0cb9b1cea17577eb4b 100644 (file)
@@ -126,11 +126,7 @@ box3d_side_write (SPObject *object, Inkscape::XML::Node *repr, guint flags)
     if ( !curve ) {
         return NULL;
     }
-    NArtBpath const *bpath = SP_CURVE_BPATH(curve);
-    if ( !bpath ) {
-        return NULL;
-    }
-    char *d = sp_svg_write_path ( bpath );
+    char *d = sp_svg_write_path ( curve->get_pathvector() );
     repr->setAttribute("d", d);
     g_free (d);