undo "set grid origin" ignores y-coordinate
Description
The undo-command works also with "set grid origin" action. But these undo-command ignores the y-coordinate of the old grid-origin (and sets it to zero instead).
Steps to reproduce
- open attached project, open board: set_grid_origin.zip
- set grid to 5,0mm (for easier reproduction)
- set x/y-axis direction to: from left->right / from bottom-->top (increases up) (in case this is influences the behaviour)
- look into grid-properties: current grid-origin @ -40/-20 (see picture 1)
- activate "set new grid origin"-command
- place new grid origin somewhere (example:50,-50) (see picture 2)
- CTRL+Z to undo operation
- observe: grid origin command was undone, but the origin is now at (-40,0)
- seems like y-coordinate is ignored at undo-command
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: 7.99.0-1837-gc652abecff, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.7.1
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1936 without C++ ABI
Build settings: