Height and Width of rectangle wrong after Setting Grid Origin

KiCad 8.0.8 (detailed version pasted below).

Before I submit a bug, I’d like to make sure I’m not missing something.

I drew a rectangle on the sheet in PCBnew, for example 20 mm Width, and 10 mm Height. You can use the Properties sidebar to set them. At this point the Properties sidebar makes sense:

End X - Start X = Width as expected.
End Y - Start Y = Height as expected.

Now set the grid origin to the upper left corner of the rectangle. Start X and Start Y are now 0 as expected. End X is 20 mm as expected. End Y is 10 mm as expected.

But in the Properties sidebar, Width and Height are now a large negative values, seemingly unrelated to Start X, End X, Start Y and End Y.

Am I missing something, or is this a bug?

I do have Preferences / PCB Editor / Origins & Axis / Display Origin set to Grid Origin.

And the status line along the bottom (not sure the correct name for it) does show the correct Width and Height, and the mouse cursor X Y coordinates are correct, relative to the grid origin.

The Properties sidebar is where the Height and Width are wrong.


Application: KiCad x64 on x64
Version: 8.0.8, release build
Libraries:
wxWidgets 3.2.6
FreeType 2.13.3
HarfBuzz 10.0.1
FontConfig 2.15.0
libcurl/8.10.1-DEV Schannel zlib/1.3.1
Platform: Windows 11 (build 26100), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: Intel, Intel(R) Iris(R) Xe Graphics, 4.6.0 - Build 31.0.101.4502
Build Info:
Date: Jan 11 2025 18:59:49
wxWidgets: 3.2.6 (wchar_t,wx containers)
Boost: 1.86.0
OCC: 7.8.1
Curl: 8.10.1-DEV
ngspice: 44
Compiler: Visual C++ 1942 without C++ ABI
Build settings:

Looks like a bug.
All measurements seem OK when Preferences set to Page Origin, but when Preferences set to Grid Origin, the results are less than satisfactory.
It seems this problem still persists in 9.0.0

Application: KiCad PCB Editor x86_64 on x86_64

Version: 9.0.0-9.0.0-2~ubuntu22.04.1, release build

Libraries:
wxWidgets 3.2.1
FreeType 2.11.1
HarfBuzz 2.7.4
FontConfig 2.13.1
libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.18

Platform: Linux Mint 21.3, 64 bit, Little endian, wxGTK, X11, cinnamon, x11
OpenGL: Mesa, NV106, 4.3 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.3

Build Info:
Date: Feb 20 2025 21:18:04
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.1
Curl: 7.81.0
ngspice: 43
Compiler: GCC 11.4.0 with C++ ABI 1016
KICAD_IPC_API=ON

Locale:
Lang: en_AU
Enc: UTF-8
Num: 1,234.5
Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)

@MikeTranch

Hi Mike,
I just checked 9.99 and it has the same problem as 9.0.0 and 8.0.8. It is worth mentioning this in your bug report.

thank you, I did create a bug report and mentioned your comment

1 Like