Fix segfault in P&S router.

This commit is contained in:
Tom Wlostowski 2015-03-03 15:58:36 -05:00 committed by Wayne Stambaugh
parent 7977ac5421
commit b580ef70c5
1 changed files with 3 additions and 0 deletions

View File

@ -189,6 +189,9 @@ bool PNS_MEANDER_PLACER::doMove( const VECTOR2I& aP, PNS_ITEM* aEndItem, int aTa
bool PNS_MEANDER_PLACER::FixRoute( const VECTOR2I& aP, PNS_ITEM* aEndItem )
{
if( !m_currentNode )
return false;
m_currentTrace = PNS_LINE( *m_originLine, m_finalShape );
m_currentNode->Add( &m_currentTrace );