diff options
| author | Jabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es> | 2017-12-29 11:58:39 +0000 |
|---|---|---|
| committer | Jabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es> | 2017-12-29 11:58:39 +0000 |
| commit | a506492cec55236e824e41656e546cc4abfef53a (patch) | |
| tree | 7f8345c5f312b29099418f51b046ab6276778965 /src/live_effects/lpe-bendpath.cpp | |
| parent | Merge branch 'master' into powerpencilII (diff) | |
| download | inkscape-a506492cec55236e824e41656e546cc4abfef53a.tar.gz inkscape-a506492cec55236e824e41656e546cc4abfef53a.zip | |
Add fix sugested in mailing list to allow diferent LPE on clones
Diffstat (limited to 'src/live_effects/lpe-bendpath.cpp')
| -rw-r--r-- | src/live_effects/lpe-bendpath.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
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<LPEBendPath*>(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(); } } |
