Duplicating does not fork LPEs

Bug #933928 reported by Valvkalt
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
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)
tags: added: livepatheffects
removed: duplicate lpe
Revision history for this message
su_v (suv-lp) wrote :
Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Johan Engelen (johanengelen)
Revision history for this message
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
Revision history for this message
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)
Changed in inkscape:
status: Fix Committed → Fix Released
Revision history for this message
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

Revision history for this message
Lucian (lucian-j) wrote :

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

Revision history for this message
jazzynico (jazzynico) wrote :

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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.