pns_diff_pair_placer: fix empty message when a signal of a pair is not found.

Fixes #9334
https://gitlab.com/kicad/code/kicad/issues/9334
This commit is contained in:
jean-pierre charras 2021-10-08 14:57:01 +02:00
parent e508e08ecf
commit 4d6b1a4e36
1 changed files with 6 additions and 1 deletions

View File

@ -580,8 +580,13 @@ bool DIFF_PAIR_PLACER::Start( const VECTOR2I& aP, ITEM* aStartItem )
setWorld( Router()->GetWorld() );
m_currentNode = m_world;
if( !FindDpPrimitivePair( m_currentNode, aP, aStartItem, m_start ) )
wxString err_msg;
if( !FindDpPrimitivePair( m_currentNode, aP, aStartItem, m_start, &err_msg ) )
{
Router()->SetFailureReason( err_msg );
return false;
}
m_netP = m_start.PrimP()->Net();
m_netN = m_start.PrimN()->Net();