Eeschema, new legay plugin reader: ensure component flags (mainly used in edition) are cleared after loading from file.

This commit is contained in:
jean-pierre charras 2016-08-01 09:11:31 +02:00
parent e15ad9350f
commit 3ca757b653

View File

@ -1355,7 +1355,11 @@ SCH_COMPONENT* SCH_LEGACY_PLUGIN::loadComponent( FILE_LINE_READER& aReader )
component->GetField( index )->SetName( name ); component->GetField( index )->SetName( name );
} }
else if( strCompare( "$EndComp", line ) ) else if( strCompare( "$EndComp", line ) )
{
// Ensure all flags (some are set by previous initializations) are reset:
component->ClearFlags();
return component.release(); return component.release();
}
else else
{ {
// There are two lines that begin with a tab or spaces that includes a line with the // There are two lines that begin with a tab or spaces that includes a line with the