Dimension switches from mm in version 5 to in in version 7
Description
The units of dimension of a Pcbnew 5 file switch to non-metric when opened in KiCad 7.
Steps to reproduce
- Create test.kicad_pcb file in Pcbnew 5
- Add a dimension measurment
- Set it to mm, remove the unit mm from the text ( 10.000 mm => 10.000mm )
- Save the PCB and close Pcbnew 5
- Open test.kicad_pcb in KiCad 7
- The dimension unit is now non-metric, with the symbol in. When opened the unit "Zoll" is selected.
Testfile: test.kicad_pcb
I would expect KiCad to keep using mm.
After checking the *.kicad_pcb file, i saw that there is no unit information. But then there is the question why choose a non-metric "unit"? Why not automatic or mm?
KiCad Version
Application: KiCad PCB Editor
Version: (7.0.0-dirty), release build
Libraries:
wxWidgets 3.0.5
FreeType 2.10.4
HarfBuzz 2.7.4
FontConfig 2.13.1
libcurl/7.74.0 GnuTLS/3.7.1 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0 librtmp/2.3
Platform: Debian GNU/Linux 11 (bullseye), 64 bit, Little endian, wxGTK, lightdm-xsession, x11
Build Info:
Date: Feb 24 2023 11:03:34
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.1
Curl: 7.74.0
ngspice: 34
Compiler: GCC 10.2.1 with C++ ABI 1014
Build settings:
KICAD_SPICE=ON