Revert "sch_symbol: use fail message fall back to dummy symbol when passed null"
This reverts commit e0e837189d
.
This commit is contained in:
parent
0ca7a81181
commit
0c45f85bc0
|
@ -35,7 +35,6 @@
|
||||||
#include <trigo.h>
|
#include <trigo.h>
|
||||||
#include <refdes_utils.h>
|
#include <refdes_utils.h>
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
#include <wx/debug.h>
|
|
||||||
#include <settings/settings_manager.h>
|
#include <settings/settings_manager.h>
|
||||||
#include <sch_plotter.h>
|
#include <sch_plotter.h>
|
||||||
#include <string_utils.h>
|
#include <string_utils.h>
|
||||||
|
@ -231,11 +230,7 @@ wxString SCH_SYMBOL::GetSchSymbolLibraryName() const
|
||||||
|
|
||||||
void SCH_SYMBOL::SetLibSymbol( const LIB_SYMBOL* aLibSymbol )
|
void SCH_SYMBOL::SetLibSymbol( const LIB_SYMBOL* aLibSymbol )
|
||||||
{
|
{
|
||||||
if( !aLibSymbol )
|
wxASSERT_MSG( aLibSymbol, wxT( "SCH_SYMBOL::SetLibSymbol() called with NULL pointer" ) );
|
||||||
{
|
|
||||||
wxFAIL_MSG( "SCH_SYMBOL::SetLibSymbol() called with NULL pointer" );
|
|
||||||
aLibSymbol = LIB_SYMBOL::Dummy();
|
|
||||||
}
|
|
||||||
|
|
||||||
m_part.reset( aLibSymbol->Flatten().release() );
|
m_part.reset( aLibSymbol->Flatten().release() );
|
||||||
m_part->SetParent();
|
m_part->SetParent();
|
||||||
|
|
Loading…
Reference in New Issue