Commit b580ef70 authored by Tom Wlostowski's avatar Tom Wlostowski Committed by Wayne Stambaugh
Browse files

Fix segfault in P&S router.

parent 7977ac54
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 );