Code

for sp-star.cpp, start using 2geompath for svg_write: sp_svg_write_path(np->curve...
authorjohanengelen <johanengelen@users.sourceforge.net>
Fri, 6 Jun 2008 23:41:20 +0000 (23:41 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Fri, 6 Jun 2008 23:41:20 +0000 (23:41 +0000)
src/sp-star.cpp

index fbcad697586bb0c78a672271eb82254ce231466e..cf6f1140395a465d243eea7af1e585893a0a9061 100644 (file)
@@ -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);
         }