diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-09-14 21:48:04 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-09-14 21:48:04 +0000 |
| commit | 1020c72da34e2fa326343cf2dcb18f0a2763b359 (patch) | |
| tree | 545c2cf03ea18f8e190b7deea2846ba225fdc151 /src | |
| parent | sorry for debug message. deleted. (diff) | |
| download | inkscape-1020c72da34e2fa326343cf2dcb18f0a2763b359.tar.gz inkscape-1020c72da34e2fa326343cf2dcb18f0a2763b359.zip | |
Clean up code a bit.
(bzr r3747)
Diffstat (limited to 'src')
| -rw-r--r-- | src/splivarot.cpp | 13 |
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)); } |
