summaryrefslogtreecommitdiffstats
path: root/src/sp-star.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-06 23:41:20 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-06 23:41:20 +0000
commit745ebcf8784861f752bfc6c3bf16c196cd09d64c (patch)
tree6cd69ea27a97946b1f9a9ebaddbebc58ad6ec789 /src/sp-star.cpp
parentfor sp-offset.cpp and sp-star.cpp, start using 2geompath for svg_write: sp_sv... (diff)
downloadinkscape-745ebcf8784861f752bfc6c3bf16c196cd09d64c.tar.gz
inkscape-745ebcf8784861f752bfc6c3bf16c196cd09d64c.zip
for sp-star.cpp, start using 2geompath for svg_write: sp_svg_write_path(np->curve->get_pathvector() ); (completed)
(bzr r5843)
Diffstat (limited to 'src/sp-star.cpp')
-rw-r--r--src/sp-star.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/sp-star.cpp b/src/sp-star.cpp
index fbcad6975..cf6f11403 100644
--- a/src/sp-star.cpp
+++ b/src/sp-star.cpp
@@ -285,14 +285,9 @@ sp_star_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);
}