Negative offset crashes 'Crate from Selection' tools until next restart
I'm trying to 'offset' a complex graphic shape. I found how I can specify a positive offset and get both inset and outset shapes at the same time, but before I realized this, I tried a negative value.
Steps to reproduce
- Create a shape that's closed on a graphics layer. My example shape is a circle with r=2.
- Create from Selection→Create Polygon from Selection...
- Choose 'Create Bounding Hull', specify Gap=G and Line width=0.2
- If G was positive, it works as expected.
If G was negative, an error appears incorrectly stating the shape wasn't closed, the original shape remains untouched, and PCB Editor is left in a corrupt state
- When you try to use any except the last 'Create from Selection' tools in the same session, nothing happens. PCB Editor needs to be closed and re-opened to repair the internal state.
Work
- Negative Gap values should be rejected.
- The details of the corrupt state must be identified and prevented.
KiCad Version
Application: KiCad PCB Editor x86_64 on x86_64
Version: 8.0.1-8.0.1-0~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.2.1
FreeType 2.10.1
HarfBuzz 2.6.4
FontConfig 2.13.1
Platform: Linux Mint 20.3, 64 bit, Little endian, wxGTK, X11, unity, x11
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.71.0
OCC: 7.6.3
Curl: 7.68.0
ngspice: 42
Compiler: GCC 9.4.0 with C++ ABI 1013
Build settings: