Undo of mask creation moves gives (previously) masked object bounding box of mask; object can become unselectable

Steps to reproduce:

  • open Inkscape
  • create a larger object
  • create a smaller object
  • select both
  • Right click -> Set as mask
  • Undo
  • Select larger object

What happened?

The bounding box has the size of the mask which was removed by undoing. In case the two objects did not overlap before creating the mask, it is impossible to select the larger object.

mask_undo

What should have happened?

The bounding box has the size of the larger object

Moving the object with the smaller bounding box works. After moving, the bounding box has the correct size.

Inkscape Version and Operating System:

  • Inkscape Version: 1.1-dev (03ae7f7, 2020-01-04)
  • Operating System: Windows 10
  • Operating System version: 10.0.18362