summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 88dd07a)
raw | patch | inline | side by side (parent: 88dd07a)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 14 Sep 2007 21:48:04 +0000 (21:48 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 14 Sep 2007 21:48:04 +0000 (21:48 +0000) |
src/splivarot.cpp | patch | blob | history |
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index cb2f5d627cfa15e7d2cdcb395a6afe16fea5835b..d16137c1d06a81e1854d7814e6809eb0a6b4d721 100644 (file)
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
if (SP_IS_SHAPE(item))
{
- if (SP_SHAPE(item)->path_effect_href) {
- const gchar *svgd = SP_OBJECT(item)->repr->attribute("inkscape:original-d");
- if (svgd) {
- NArtBpath *bpath = sp_svg_read_path(svgd);
- SPCurve *curve_new = sp_curve_new_from_bpath(bpath);
- if (curve_new) {
- curve = curve_new; // don't do curve_copy because curve_new is already only created for us!
- } else {
- g_free(bpath);
- }
- }
+ if (SP_IS_PATH(item)) {
+ curve = sp_path_get_curve_for_edit(SP_PATH(item));
} else {
curve = sp_shape_get_curve(SP_SHAPE(item));
}