Duplicating does not fork LPEs

Bug #933928 reported by Valvkalt on 2012-02-17
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Johan Engelen

Bug Description

Duplicating an LPE object doesn't fork the LPE, meaning the duplicate and the original keep sharing the same properties: any changes in LPE properties applied to the duplicate also shows up in the original, and vice-versa. This still occurs even after tweaking one of them with the F2 node tool, but the LPE does forks if the F1 tool is used (moving, resizing, etc.).

To reproduce the behaviour:
1. Make a Pattern along Path shape (I created a form, copied it, then used "Shape - From clipboard" to automatically apply the form)
2. Duplicate this shape
3. Modify the skeleton of the duplicate with the node tool, but not the F1 tool
4. Open the LPE dialogue and modify the duplicate from there. Example: change the width.
Result: the original shape gets modified as well. The reverse is also true.

This is quite visible with the new Powerstroke tool, because sometimes you duplicate an existing Powerstroke shape and tweak it just slightly. Those changes then show up with the original powerstroke.

su_v (suv-lp) on 2012-02-17
tags: added: livepatheffects
removed: duplicate lpe
su_v (suv-lp) wrote :
Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Johan Engelen (johanengelen)
Johan Engelen (johanengelen) wrote :

upon duplicating an object, LPEs are now forked. this is configurable in the preferences file, default to "on", but there is no option in the UI (yet?).
preferences.xml location for this option: /options/forklpeonduplicate/value.
See /options/relinkclonesonduplicate/value for syntax.

Changed in inkscape:
milestone: none → 0.49
status: Confirmed → Fix Committed
su_v (suv-lp) wrote :

> status: Confirmed → Fix Committed

Changes had been committed in r11095
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/11095>

Bryce Harrington (bryce) on 2015-02-21
Changed in inkscape:
status: Fix Committed → Fix Released
Lucian (lucian-j) wrote :

Hi,

Thanks for this fix. Unfortunately the fix is not quite a complete one. LPEs are forked if the path itself is directly duplicated... but not if it is duplicated as part of a group. To reproduce:

* Draw a path
* Add powerstroke LPE
* Group the path
* Duplicate the group
* Enter either the duplicate group or the original
* Adjust the powerstroke nodes

Expected result:
* Only one of the paths should change

Actual result:
* Both paths change.

Workaround:
Ungroup any groups containing LPEs before duplicating

Lucian (lucian-j) wrote :

FWIW this behaviour was observed in both 0.91 and 0.91+devel r14175

jazzynico (jazzynico) wrote :

Follow-up report: Bug #1426780 "unexpected behavior on LPEs when duplicating groups (or layers)".
<https://bugs.launchpad.net/inkscape/+bug/1426780>

su_v (suv-lp) wrote :

TODO:
* file follow-up report to add option to preferences dialog
  (to allow disabling the auto-forking).

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers