File -> Page Settings: Cancelling the dialog, schematic zoom arbitrarily changes
Description
Opening the Page Settings dialog and then cancelling it pressing the ESC key or clicking the Cancel button, the zoom arbitrarily changes. Size can shrink or enlarge, depending on actual zoom, read below.
Images show a schematic after it has been shrunk:
It is possible to notice the shrunk schematic with respect to the crosshair cursor in the upper left corner.
Steps to reproduce
- Open a project
- Open the schematic
- Press the Home key to fit to screen
- Select File -> Page Settings
- Cancel dialog pressing the ESC key or clicking the Cancel button
- Schematic shrinks
- Reduce zoom to any level smaller than point 3
- Select File -> Page Settings
- Cancel dialog pressing the ESC key or clicking the Cancel button
- Schematic enlarges but doesn't fit to screen
- Increase zoom to any level greater than point 3
- Select File -> Page Settings
- Cancel dialog pressing the ESC key or clicking the Cancel button
- Schematic shrinks but doesn't fit to screen
KiCad Version
Application: KiCad Schematic Editor x64 on x64
Version: 7.0.5, release build
Libraries: wxWidgets 3.2.2 FreeType 2.12.1 HarfBuzz 6.0.0 FontConfig 2.14.1 libcurl/7.88.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info: Date: May 27 2023 02:48:13 wxWidgets: 3.2.2 (wchar_t,wx containers) Boost: 1.81.0 OCC: 7.6.3 Curl: 7.88.1-DEV ngspice: 40 Compiler: Visual C++ 1936 without C++ ABI
Build settings: KICAD_SPICE=ON