Pcbnew Board Statistics shows incorrect board size
Description
Inspect -> Show Board Statistics.
Board Size values are incorrect. It seems that the board size calculations are taken from the outside of edge cuts features, not the center - as specified in the docs. If I change the line thickness on edge cuts layer then the board size changes..
Dimension shown = actual dimension + 2*line thickness*0.5
In both these images the board should be 80mm by 50mm
Steps to reproduce
- Create new board in PCB Editor.
- Create board outline on edge cuts layer (rectangle or separate lines)
- Inspect -> Show Board Statistics
KiCad Version
Application: KiCad arm64 on arm64
Version: 8.0.4, release build
Libraries: wxWidgets 3.2.5 FreeType 2.13.2 HarfBuzz 8.3.0 FontConfig 2.15.0 libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.58.0
Platform: macOS Sonoma Version 14.4.1 (Build 23E224), 64 bit, Little endian, wxMac OpenGL: Apple, Apple M1 Ultra, 2.1 Metal - 88
Build Info: Date: Jul 17 2024 00:34:47 wxWidgets: 3.2.5 (wchar_t,wx containers) Boost: 1.84.0 OCC: 7.7.2 Curl: 7.87.0 ngspice: 42 Compiler: Clang 14.0.3 with C++ ABI 1002
Build settings: