symbol-editor: issues when editing root symbol
Description
When making changes to a root symbol, some of the derived symbols are turned into empty root symbols. Which ones are random.
Steps to reproduce
-
Open a root symbol and make some change (here I add a circle)
-
Now open one of symbols derived from it. This one is fine (except that the circles selection-highlight seems to be carried over as well)
-
But one of the derived symbols was destroyed. Notice it's been turned into a root symbol, but empty:
-
Restarting the application (without saving the library) and trying again, this time half of the derived symbols were destroyed:
KiCad Version
built from master 96547836
Application: LibEdit
Version: (5.99.0-523-g5d7284a00), release build
Libraries:
wxWidgets 3.0.4
libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.5.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
Build date: Dec 14 2019 17:30:03
wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8)
Boost: 1.70.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.54.0
Compiler: Clang 10.0.1 with C++ ABI 1002
Build settings:
KICAD_SCRIPTING=OFF
KICAD_SCRIPTING_MODULES=OFF
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=OFF
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=OFF
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON