Clear NEW flags after import.

Fixes https://gitlab.com/kicad/code/kicad/issues/8750
This commit is contained in:
Jeff Young 2021-07-07 20:04:10 +01:00
parent 66eb2ddeb5
commit 5a57f6ba98
3 changed files with 13 additions and 0 deletions

View File

@ -235,6 +235,7 @@ SCH_SHEET* SCH_ALTIUM_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSchem
SCH_SCREENS allSheets( m_rootSheet ); SCH_SCREENS allSheets( m_rootSheet );
allSheets.UpdateSymbolLinks(); // Update all symbol library links for all sheets. allSheets.UpdateSymbolLinks(); // Update all symbol library links for all sheets.
allSheets.ClearEditFlags();
return m_rootSheet; return m_rootSheet;
} }

View File

@ -1246,6 +1246,16 @@ int SCH_SCREENS::ReplaceDuplicateTimeStamps()
} }
void SCH_SCREENS::ClearEditFlags()
{
for( SCH_SCREEN* screen = GetFirst(); screen; screen = GetNext() )
{
for( SCH_ITEM* item : screen->Items() )
item->ClearEditFlags();
}
}
void SCH_SCREENS::DeleteMarker( SCH_MARKER* aMarker ) void SCH_SCREENS::DeleteMarker( SCH_MARKER* aMarker )
{ {
for( SCH_SCREEN* screen = GetFirst(); screen; screen = GetNext() ) for( SCH_SCREEN* screen = GetFirst(); screen; screen = GetNext() )

View File

@ -613,6 +613,8 @@ public:
*/ */
void UpdateSymbolLinks( REPORTER* aReporter = nullptr ); void UpdateSymbolLinks( REPORTER* aReporter = nullptr );
void ClearEditFlags();
/** /**
* Test all of the schematic symbols to see if all #LIB_ID objects library nickname is not * Test all of the schematic symbols to see if all #LIB_ID objects library nickname is not
* set. * set.