Commit 504c8bf2 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski Committed by Maciej Suminski

router: fix segfault on misnamed DP complementary net

parent 6a016742
...@@ -485,8 +485,14 @@ bool PNS_DIFF_PAIR_PLACER::findDpPrimitivePair( const VECTOR2I& aP, PNS_ITEM* aI ...@@ -485,8 +485,14 @@ bool PNS_DIFF_PAIR_PLACER::findDpPrimitivePair( const VECTOR2I& aP, PNS_ITEM* aI
netNameP = netNameBase + suffix; netNameP = netNameBase + suffix;
} }
int netP = brd->FindNet( netNameP )->GetNet(); NETINFO_ITEM* netInfoP = brd->FindNet( netNameP );
int netN = brd->FindNet( netNameN )->GetNet(); NETINFO_ITEM* netInfoN = brd->FindNet( netNameN );
if( !netInfoP || !netInfoN )
return false;
int netP = netInfoP->GetNet();
int netN = netInfoN->GetNet();
if( primP ) if( primP )
refNet = netN; refNet = netN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment