Pasting object with LPE into new document always uses same LPE

Steps to reproduce:

  • open Inkscape
  • create rectangle
  • apply offset LPE (with offset of 10 mm) (also replicated with perspective/envelope)
  • copy rectangle and paste into a new document
  • go back to the first document
  • change the offset to 20 mm
  • copy rectangle and paste into a new document

What happened?

  • although a separate lpe entry is created, it has the same properties as the original lpe (reason: when adding the new lpe, it copies the lpe with the same id in the new document, instead of the clipboard)

What should have happened?

  • paste new object into document, not an older one

Workaround

  • Rename the id of the lpe (and the link to the lpe) after pasting. Obviously not very usable

Version Info:

  • 1.0 (4035a4f, 2020-05-01) Linux Mint 20
  • Inkscape 1.1-dev (608fe7bbae, 2020-07-26) Linux Mint 20

Not replicated Inkscape 0.92.5 (3f0c6aa335, 2020-07-27) Linux Mint 20

Bisected to commit inkscape@01bc8b4a

Author: Jabier Arraiza <jabier.arraiza@marker.es>
Date:   Sun Jan 26 16:22:17 2020 +0100

    Fix Pasting Path Effect : unexpected behavior https://gitlab.com/inkscape/in
kscape/issues/623

Search terms:

Edited by Nathan Lee