From b30329614741706c88eb3fb05d771ec09ed927a5 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Fri, 6 Jun 2008 23:38:47 +0000 Subject: [PATCH] for sp-offset.cpp and sp-star.cpp, start using 2geompath for svg_write: sp_svg_write_path(np->curve->get_pathvector() ); --- src/sp-offset.cpp | 2 +- src/sp-star.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sp-offset.cpp b/src/sp-offset.cpp index 5ff01814f..f3c5cfada 100644 --- a/src/sp-offset.cpp +++ b/src/sp-offset.cpp @@ -287,7 +287,7 @@ sp_offset_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) } // write that curve to "d" - char *d = sp_svg_write_path (SP_CURVE_BPATH(((SPShape *) offset)->curve)); + char *d = sp_svg_write_path (((SPShape *) offset)->curve->get_pathvector()); repr->setAttribute("d", d); g_free (d); diff --git a/src/sp-star.cpp b/src/sp-star.cpp index 6543a9866..fbcad6975 100644 --- a/src/sp-star.cpp +++ b/src/sp-star.cpp @@ -152,10 +152,10 @@ sp_star_write (SPObject *object, Inkscape::XML::Node *repr, guint flags) sp_repr_set_svg_double(repr, "inkscape:randomized", star->randomized); } - sp_star_set_shape ((SPShape *) star); - char *d = sp_svg_write_path (SP_CURVE_BPATH(((SPShape *) star)->curve)); - repr->setAttribute("d", d); - g_free (d); + sp_star_set_shape ((SPShape *) star); + char *d = sp_svg_write_path (((SPShape *) star)->curve->get_pathvector()); + repr->setAttribute("d", d); + g_free (d); if (((SPObjectClass *) (parent_class))->write) ((SPObjectClass *) (parent_class))->write (object, repr, flags); -- 2.30.2