circle without cx cy attributes moves wrong on undo

Summary:

<circle> attributes like cx are optional and default to 0, but Inkscape ignores the default e.g. on undo.

Steps to reproduce:

What happened?

The circle moves to some random position instead of its original position.

What should have happened?

The circle moves to its original position.

Related issues

Version info

Tested on Arch Linux with:

  • Inkscape 1.5-dev (f4c649c00a, 2024-11-30, custom)
  • Inkscape 1.4 (bfbf874f89, 2024-11-23)
  • Inkscape 1.0.2 (e86c870, 2021-01-15)
  • Inkscape 0.92.5 (d4e9c2cd6d, 2021-12-24, custom)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information