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:
parent
e508e08ecf
commit
4d6b1a4e36
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue