From 250ebd3149e930f7fdc8b83cd461c3ffac7e3fa4 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Fri, 6 Jun 2008 23:51:48 +0000 Subject: [PATCH] ellipses and groups now use 2geompath for svg_write: sp_svg_write_path(np->curve->get_pathvector() ); --- src/sp-ellipse.cpp | 11 +++-------- src/sp-item-group.cpp | 13 ++++--------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/sp-ellipse.cpp b/src/sp-ellipse.cpp index e7a42ab7f..4b68a2ca6 100644 --- a/src/sp-ellipse.cpp +++ b/src/sp-ellipse.cpp @@ -167,14 +167,9 @@ sp_genericellipse_update_patheffect(SPLPEItem *lpeitem, bool write) if (write) { Inkscape::XML::Node *repr = SP_OBJECT_REPR(shape); if ( shape->curve != NULL ) { - NArtBpath const *abp = shape->curve->get_bpath(); - if (abp) { - gchar *str = sp_svg_write_path(abp); - repr->setAttribute("d", str); - g_free(str); - } else { - repr->setAttribute("d", ""); - } + gchar *str = sp_svg_write_path(shape->curve->get_pathvector()); + repr->setAttribute("d", str); + g_free(str); } else { repr->setAttribute("d", NULL); } diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp index 347f50491..109b55eb7 100644 --- a/src/sp-item-group.cpp +++ b/src/sp-item-group.cpp @@ -853,16 +853,11 @@ sp_group_perform_patheffect(SPGroup *group, SPGroup *topgroup) Inkscape::XML::Node *repr = SP_OBJECT_REPR(subitem); - NArtBpath const *abp = c->first_bpath(); - if (abp) { - gchar *str = sp_svg_write_path(abp); - repr->setAttribute("d", str); - g_free(str); - } else { - repr->setAttribute("d", ""); - } + gchar *str = sp_svg_write_path(c->get_pathvector()); + repr->setAttribute("d", str); + g_free(str); - c->unref(); + c->unref(); } } } -- 2.30.2