summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-12-07 17:47:41 +0000
committerjabiertxof <info@marker.es>2016-12-07 17:47:41 +0000
commit832e5be17eb44f74710b680b493e8ad7ed957128 (patch)
tree9b841f4ca07d9866585f1cda2096b4a912c35648 /src
parentUpdate to trunk (diff)
downloadinkscape-832e5be17eb44f74710b680b493e8ad7ed957128.tar.gz
inkscape-832e5be17eb44f74710b680b493e8ad7ed957128.zip
Fixing retaining LPE on extra elements
(bzr r15295.1.13)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-mirror_symmetry.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/live_effects/lpe-mirror_symmetry.cpp b/src/live_effects/lpe-mirror_symmetry.cpp
index bb38acbf1..abf578078 100644
--- a/src/live_effects/lpe-mirror_symmetry.cpp
+++ b/src/live_effects/lpe-mirror_symmetry.cpp
@@ -287,7 +287,7 @@ LPEMirrorSymmetry::createMirror(SPLPEItem *origin, Geom::Affine transform, const
elemref = ms_container->appendChildRepr(phantom);
Inkscape::GC::release(phantom);
}
- cloneAttrbutes(SP_OBJECT(origin), elemref, true, "inkscape:original-d", "inkscape:path-effect", NULL); //NULL required
+ cloneAttrbutes(SP_OBJECT(origin), elemref, true, "inkscape:original-d", NULL); //NULL required
elemref->getRepr()->setAttribute("transform" , sp_svg_transform_write(transform));
if (elemref->parent != ms_container) {
Inkscape::XML::Node *copy = phantom->duplicate(xml_doc);
@@ -334,7 +334,9 @@ LPEMirrorSymmetry::processObjects(LpeAction lpe_action)
Glib::ustring css_str;
switch (lpe_action){
case LPE_TO_OBJECTS:
- elemref->getRepr()->setAttribute("inkscape:path-effect", NULL);
+ if (sp_lpe_item->getId() != id) {
+ elemref->getRepr()->setAttribute("inkscape:path-effect", NULL);
+ }
elemref->getRepr()->setAttribute("sodipodi:insensitive", NULL);
break;