Code

box3d_side_write now uses curve->get_pathvector instead of get_bpath.
authorjohanengelen <johanengelen@users.sourceforge.net>
Fri, 6 Jun 2008 23:04:26 +0000 (23:04 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Fri, 6 Jun 2008 23:04:26 +0000 (23:04 +0000)
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);