diff --git a/eeschema/sch_symbol.cpp b/eeschema/sch_symbol.cpp index 0356daf8a0..b0094dbc72 100644 --- a/eeschema/sch_symbol.cpp +++ b/eeschema/sch_symbol.cpp @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include @@ -231,11 +230,7 @@ wxString SCH_SYMBOL::GetSchSymbolLibraryName() const void SCH_SYMBOL::SetLibSymbol( const LIB_SYMBOL* aLibSymbol ) { - if( !aLibSymbol ) - { - wxFAIL_MSG( "SCH_SYMBOL::SetLibSymbol() called with NULL pointer" ); - aLibSymbol = LIB_SYMBOL::Dummy(); - } + wxASSERT_MSG( aLibSymbol, wxT( "SCH_SYMBOL::SetLibSymbol() called with NULL pointer" ) ); m_part.reset( aLibSymbol->Flatten().release() ); m_part->SetParent();