Browse Source

Report error when pin for backannotate can't be found.

Fixes https://gitlab.com/kicad/code/kicad/issues/6263
6.0.7
Jeff Young 5 years ago
parent
commit
4be6a27a39
  1. 13
      eeschema/tools/backannotate.cpp

13
eeschema/tools/backannotate.cpp

@ -370,7 +370,18 @@ void BACK_ANNOTATE::applyChangelist()
const wxString& pinNumber = entry.first;
const wxString& shortNetName = entry.second;
SCH_PIN* pin = comp->GetPin( pinNumber );
SCH_CONNECTION* conn = pin ? pin->Connection( &ref.GetSheetPath() ) : nullptr;
if( !pin )
{
msg.Printf( _( "Cannot find \"%s\" pin \"%s\"." ),
ref.GetFullRef(),
pinNumber );
m_reporter.ReportHead( msg, RPT_SEVERITY_ERROR );
continue;
}
SCH_CONNECTION* conn = pin->Connection( &ref.GetSheetPath() );
wxString key = shortNetName + ref.GetSheetPath().PathAsString();

Loading…
Cancel
Save