Browse Source

Test for dangling pins after symbol is edited

Fixes: lp:1562897
* https://bugs.launchpad.net/kicad/+bug/1562897
pull/3/merge
Chris Pavlina 9 years ago
parent
commit
a72d32d3fd
  1. 1
      eeschema/class_sch_screen.h
  2. 1
      eeschema/libeditframe.cpp
  3. 7
      eeschema/sch_screen.cpp

1
eeschema/class_sch_screen.h

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

1
eeschema/libeditframe.cpp

@ -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.

7
eeschema/sch_screen.cpp

@ -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
{

Loading…
Cancel
Save