Cannot resize clipped image correctly with snapping enabled

Summary:

Resizing a clipped image with snapping enabled results in the baseline also moving, and the image can't stay in place (see attached video).

螢幕錄製_20241009_235502

Steps to reproduce:

  • open Inkscape
  • import an image
  • draw a rectangle over the image
  • clip the image with the rectangle
  • enable snapping
  • resize the image

What happened?

The whole image moves.

What should have happened?

Only the corner/edge being resized should move.

Version info

Inkscape 1.4-rc1 (89aba67a42, 2024-10-01)

                      Compile  (Run)
    GLib version:     2.82.1
    GTK version:      3.24.43 (3.24.43)
    glibmm version:   2.66.7
    gtkmm version:    3.24.9
    libxml2 version:  2.13.4
    libxslt version:  1.1.42
    Cairo version:    1.18.2 (1.18.2)
    Pango version:    1.54.0 (1.54.0)
    HarfBuzz version: 10.0.0 (10.0.0)

    OS version:       Slackware 15.0 x86_64 (post 15.0 -current)