diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp index 68059a166f..80c4a49319 100644 --- a/eeschema/sch_component.cpp +++ b/eeschema/sch_component.cpp @@ -328,8 +328,6 @@ void SCH_COMPONENT::UpdateUnit( int aUnit ) void SCH_COMPONENT::SetConvert( int aConvert ) { - wxCHECK( m_part && m_part->HasConversion(), /* void */ ); - if( m_convert != aConvert ) { m_convert = aConvert; diff --git a/eeschema/sch_eagle_plugin.cpp b/eeschema/sch_eagle_plugin.cpp index 21da339a25..4d446440ea 100644 --- a/eeschema/sch_eagle_plugin.cpp +++ b/eeschema/sch_eagle_plugin.cpp @@ -1281,7 +1281,7 @@ void SCH_EAGLE_PLUGIN::loadInstance( wxXmlNode* aInstanceNode ) wxCHECK( libSymbol, /*void*/ ); - component->SetLibSymbol( libSymbol ); + component->SetLibSymbol( new LIB_PART( *libSymbol ) ); std::vector pins; component->GetPins( pins ); diff --git a/eeschema/tools/sch_editor_control.cpp b/eeschema/tools/sch_editor_control.cpp index fa889f3243..22e7b907ed 100644 --- a/eeschema/tools/sch_editor_control.cpp +++ b/eeschema/tools/sch_editor_control.cpp @@ -1198,7 +1198,7 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent ) if( libSymbol ) { - component->SetLibSymbol( libSymbol ); + component->SetLibSymbol( new LIB_PART( *libSymbol ) ); } else {