From 0ede830f544232d88dbb3d54ac91c91f683e67dd Mon Sep 17 00:00:00 2001 From: John Beard Date: Tue, 2 Sep 2025 23:29:00 +0800 Subject: [PATCH] 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. --- eeschema/lib_symbol.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eeschema/lib_symbol.cpp b/eeschema/lib_symbol.cpp index cf65eed24a..63dcb3a40b 100644 --- a/eeschema/lib_symbol.cpp +++ b/eeschema/lib_symbol.cpp @@ -216,8 +216,7 @@ const LIB_SYMBOL& LIB_SYMBOL::operator=( const LIB_SYMBOL& aSymbol ) LIB_SYMBOL_SPTR parent = aSymbol.m_parent.lock(); - if( parent ) - SetParent( parent.get() ); + SetParent( parent.get() ); EMBEDDED_FILES::operator=( aSymbol );