summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1b2a872)
raw | patch | inline | side by side (parent: 1b2a872)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 6 Jun 2008 23:51:48 +0000 (23:51 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 6 Jun 2008 23:51:48 +0000 (23:51 +0000) |
src/sp-ellipse.cpp | patch | blob | history | |
src/sp-item-group.cpp | patch | blob | history |
diff --git a/src/sp-ellipse.cpp b/src/sp-ellipse.cpp
index e7a42ab7f2027d3aae65c624e46ce3632941f6ef..4b68a2ca6b14094e9cbf4294dcb1c1af40377e41 100644 (file)
--- a/src/sp-ellipse.cpp
+++ b/src/sp-ellipse.cpp
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 347f50491454b596e88d1077f4b6e86bb720621e..109b55eb76331c426f7e8dd8d2ab2a41bc20f8e3 100644 (file)
--- a/src/sp-item-group.cpp
+++ b/src/sp-item-group.cpp
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();
}
}
}