mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
LIB_SYMBOL: When assigning, clear the parent if needed
This allows assigning a symbol with no parent to a symbol with a parent to work more as expected.
This commit is contained in:
parent
de8c4d4b01
commit
0ede830f54
@ -216,7 +216,6 @@ const LIB_SYMBOL& LIB_SYMBOL::operator=( const LIB_SYMBOL& aSymbol )
|
|||||||
|
|
||||||
LIB_SYMBOL_SPTR parent = aSymbol.m_parent.lock();
|
LIB_SYMBOL_SPTR parent = aSymbol.m_parent.lock();
|
||||||
|
|
||||||
if( parent )
|
|
||||||
SetParent( parent.get() );
|
SetParent( parent.get() );
|
||||||
|
|
||||||
EMBEDDED_FILES::operator=( aSymbol );
|
EMBEDDED_FILES::operator=( aSymbol );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user