Crash when setting size of rectangular pad to 0 x 0
Description
When selecting a rectangular pad (not with rounded corners) and setting its size to 0x0, instead of displaying the "your pads are too small" message, kicad crashes. This seems to only happen with pads that are rectangular. It seems to only crash when both X and Y values are 0, if only one of them is 0 it will display the message correctly.
Steps to reproduce
- Open PCB editor
- Select a rectangular pad, edit its properties
- Set its size to 0 x 0
KiCad Version
Application: KiCad
Version: (6.0.8), release build
Libraries:
wxWidgets 3.2.1
libcurl/7.84.0 OpenSSL/1.1.1q zlib/1.2.12 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.3 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.10.0 nghttp2/1.48.0
Platform: Linux 5.19.12-zen1-1-zen x86_64, 64 bit, Little endian, wxGTK, KDE, x11
Build Info:
Date: Sep 27 2022 19:38:43
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.80.0
OCC: 7.5.3
Curl: 7.85.0
ngspice: 37
Compiler: GCC 12.2.0 with C++ ABI 1017
Build settings:
KICAD_USE_OCC=ON
KICAD_USE_EGL=ON
KICAD_SPICE=ON
Terminal Output
/usr/include/c++/12.2.0/bits/stl_vector.h:1230: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::back() [with _Tp = ROUNDED_CORNER; _Alloc = std::allocator<ROUNDED_CORNER>; reference = ROUNDED_CORNER&]: Assertion '!this->empty()' failed.
Edited by ThatRedKite