Eeschema: fix update schematic symbol library link bugs.
This commit is contained in:
parent
00716e362a
commit
590a101a88
|
@ -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;
|
||||
|
|
|
@ -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<LIB_PIN*> pins;
|
||||
component->GetPins( pins );
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue