After selecting layer, layer moves when object is dragged,

Summary:

After selecting a layer in the Objects dialog, dragging an unlocked object in that layer moves the entire layer.

Steps to reproduce:

  • open the attached svg file.
  • Select, lock and hide Layer 1 in the Objects dialog
  • Select, unlock and un-hide Layer 2
  • Attempt to drag the green object in layer 2

What happened?

The entire layer is dragged, not just the green star object.

What should have happened?

Only the unlocked green object in the layer should move, not the entire layer. A layer should not move, unless converted to a group.

Sample attachments:

LayerMoves1.svg

Version info

Inkscape 1.3-alpha (2a5ddc9, 2023-03-29)

    GLib version:     2.64.6
    GTK version:      3.24.20
    glibmm version:   2.64.2
    gtkmm version:    3.24.2
    libxml2 version:  2.9.10
    libxslt version:  1.1.34
    Cairo version:    1.17.7
    Pango version:    1.44.7
    HarfBuzz version: 2.6.4

    OS version:       Linux Mint 21

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information