Test for dangling pins after symbol is edited

Fixes: lp:1562897
* https://bugs.launchpad.net/kicad/+bug/1562897
This commit is contained in:
Chris Pavlina 2017-03-10 09:36:55 -05:00
parent f46961d003
commit a72d32d3fd
3 changed files with 9 additions and 0 deletions

View File

@ -588,6 +588,7 @@ public:
enum MARKER_BASE::MARKER_SEVERITY aSeverity );
void UpdateSymbolLinks();
void TestDanglingEnds();
private:
void AddScreenToList( SCH_SCREEN* aScreen );

View File

@ -1448,6 +1448,7 @@ void LIB_EDIT_FRAME::refreshSchematic()
SCH_SCREENS schematic;
schematic.UpdateSymbolLinks();
schematic.TestDanglingEnds();
// There may be no parent window so use KIWAY message to refresh the schematic editor
// in case any symbols have changed.

View File

@ -1522,6 +1522,13 @@ void SCH_SCREENS::UpdateSymbolLinks()
}
void SCH_SCREENS::TestDanglingEnds()
{
for( SCH_SCREEN* screen = GetFirst(); screen; screen = GetNext() )
screen->TestDanglingEnds();
}
#if defined(DEBUG)
void SCH_SCREEN::Show( int nestLevel, std::ostream& os ) const
{