From a506492cec55236e824e41656e546cc4abfef53a Mon Sep 17 00:00:00 2001 From: Jabiertxo Arraiza Cenoz Date: Fri, 29 Dec 2017 12:58:39 +0100 Subject: Add fix sugested in mailing list to allow diferent LPE on clones --- src/live_effects/lpe-bendpath.cpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'src/live_effects/lpe-bendpath.cpp') diff --git a/src/live_effects/lpe-bendpath.cpp b/src/live_effects/lpe-bendpath.cpp index dcbf5efd0..093d7ac06 100644 --- a/src/live_effects/lpe-bendpath.cpp +++ b/src/live_effects/lpe-bendpath.cpp @@ -84,14 +84,21 @@ LPEBendPath::doBeforeEffect (SPLPEItem const* lpeitem) // get the item bounding box original_bbox(lpeitem); original_height = boundingbox_Y.max() - boundingbox_Y.min(); - if (knot_entity) { - if (hide_knot) { - helper_path.clear(); - knot_entity->knot->hide(); - } else { - knot_entity->knot->show(); + SPDesktop *desktop = SP_ACTIVE_DESKTOP; + if (desktop) { + Inkscape::Selection * sel = SP_ACTIVE_DESKTOP->getSelection(); + SPItem * item = sel->singleItem(); + if (item->getId() == sp_lpe_item->getId() && static_cast(sp_lpe_item->getCurrentLPE()) == this) { + if (knot_entity && knot_entity->knot) { + if (hide_knot) { + helper_path.clear(); + knot_entity->knot->hide(); + } else { + knot_entity->knot->show(); + } + knot_entity->update_knot(); + } } - knot_entity->update_knot(); } } -- cgit v1.2.3