mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-15 10:43:15 +02:00
Eeschema, new legay plugin reader: ensure component flags (mainly used in edition) are cleared after loading from file.
This commit is contained in:
parent
e15ad9350f
commit
3ca757b653
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user