Restore selection backup not working for nodes in multiple paths, selects wrong nodes

Summary:

I just tested the new actions 'Save selection backup' and 'Restore selection backup'. They seem to work great for objects, but there is an issue when selecting nodes of multiple objects and backing them up / restoring that.

Peek_2023-05-16_19-49

Steps to reproduce:

  • open Inkscape
  • draw two paths
  • switch to node tool
  • select a few nodes in each path
  • open commands bar
  • search 'backup', select 'set selection backup'
  • do something else (draw, move, ...)
  • switch back to node tool
  • in the commands bar, select 'restore selection backup'

What happened?

It selects nodes in the correct paths, however those are not the correct nodes, and they also only are within a single path.

What should have happened?

Correct nodes selected.

Version info

Inkscape 1.3-alpha (d0e4a2aa6b, 2023-05-16)

    GLib version:     2.72.4
    GTK version:      3.24.33
    glibmm version:   2.66.2
    gtkmm version:    3.24.5
    libxml2 version:  2.9.13
    libxslt version:  1.1.34
    Cairo version:    1.16.0
    Pango version:    1.50.6
    HarfBuzz version: 2.7.4

    OS version:       Linux Mint 21.1