summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/splivarot.cpp')
-rw-r--r--src/splivarot.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index cb2f5d627..d16137c1d 100644
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
@@ -1718,17 +1718,8 @@ Path_for_item(SPItem *item, bool doTransformation, bool transformFull)
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));
}