Grouping an element in a transformed layer that is <use>d in the layer with another element outside the layer displaces the clone
Split out from https://bugs.launchpad.net/inkscape/+bug/603623
Summary:
Grouping an element in a transformed layer that is d in the layer with another element outside the layer displaces the clone. The following are minimal conditions afaict:
- Layer 1 is transformed
- An object is located in layer 1, and a clone of that object exists in Layer 1. Neither the object nor the clone need a transform.
- Another object is created ouside of Layer 1.
- Group the two objects (but not the clone). The clone is displaced.
Steps to reproduce:
- open Inkscape
- open CloneGroupTest.svg
- Group the two left rectangles
What happened?
- The right rectangle is displaced.
What should have happened?
- The rectangle stays put.
Sample attachments:
Another repro: (simplified from https://bugs.launchpad.net/inkscape/+bug/603623)
- Select the top path and the bottom left rectangle and group them
Version info
Inkscape 1.2-alpha (0bd5040e63, 2022-02-05)
GLib version: 2.70.3
GTK version: 3.24.31
glibmm version: 2.66.2
gtkmm version: 3.24.5
libxml2 version: 2.9.12
libxslt version: 1.1.34
Cairo version: 1.17.4
Pango version: 1.50.3
HarfBuzz version: 3.2.0
OS version: Windows 10 20H2