Image with preserved aspect ratio shows redraw artifacts if other objects are present

Summary:

Image show redrawing artifacts/repeated pixels when aspect ratio is set to preserve it.

Steps to reproduce:

  • open Inkscape
  • import some image
  • set preserveAspectRatio, say to xMidYMid
  • resize its frame, so it sits in the middle with some space on both sides
  • add some elements, say a rectangle below the image
  • move the image

What happened?

  • it looks like first and last image column is replicated where there should be none

What should have happened?

  • image redrawn cleanly without any pixels repeated

Sample attachments:

preserve-image-aspect-ratio

Version info

v1.3 from master as of Feb 11, 2023

Inkscape 1.3-dev (3eb047d619, 2023-02-11, custom)

    GLib version:     2.74.3
    GTK version:      3.24.36
    glibmm version:   2.66.5
    gtkmm version:    3.24.7
    libxml2 version:  2.9.13
    libxslt version:  1.1.37
    Cairo version:    1.16.0
    Pango version:    1.50.12
    HarfBuzz version: 5.3.1

    OS version:       macOS