Browse Source
Symbol editor: fix inherited symbol editing bug.
Symbol editor: fix inherited symbol editing bug.
The library manager update part function was orphaning the root symbol of derived symbols when the root symbol was edited. Re-parent the inherited symbols when updating a root symbol. Update the mandatory field attributes whenever the parent is set for derived parts. This will show the fields with the correct attributes in the symbol editor and viewer. Using std::unique_ptr to hold the current symbols was deleting the pointer on symbol selection changes causing the pointer in the library manager buffer to be stale in some cases. Revert back to using a simple pointer and manual clean up as required. Prevent derived symbols from being saved to a different library to prevent orphaned symbols. Fixes kicad/code/kicad#3649merge-requests/20/head
8 changed files with 92 additions and 26 deletions
-
43eeschema/class_libentry.cpp
-
5eeschema/dialogs/dialog_edit_component_in_lib.cpp
-
12eeschema/libedit/lib_edit_frame.cpp
-
4eeschema/libedit/lib_edit_frame.h
-
22eeschema/libedit/lib_manager.cpp
-
18eeschema/libedit/libedit.cpp
-
8eeschema/libedit/libedit_undo_redo.cpp
-
6eeschema/libedit/symbedit.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue