router: fix segfault with NPTH holes in COMPONENT_DRAGGER
This commit is contained in:
parent
adbd94553d
commit
f2338d9faa
|
@ -55,6 +55,9 @@ bool COMPONENT_DRAGGER::Start( const VECTOR2I& aP, ITEM_SET& aPrimitives )
|
||||||
if( item.item->Kind() != ITEM::SOLID_T )
|
if( item.item->Kind() != ITEM::SOLID_T )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if( ! item.item->IsRoutable() )
|
||||||
|
continue;
|
||||||
|
|
||||||
auto solid = static_cast<SOLID*>( item.item );
|
auto solid = static_cast<SOLID*>( item.item );
|
||||||
auto jt = m_world->FindJoint( solid->Pos(), solid );
|
auto jt = m_world->FindJoint( solid->Pos(), solid );
|
||||||
|
|
||||||
|
|
|
@ -757,6 +757,9 @@ void NODE::removeViaIndex( VIA* aVia )
|
||||||
|
|
||||||
void NODE::removeSolidIndex( SOLID* aSolid )
|
void NODE::removeSolidIndex( SOLID* aSolid )
|
||||||
{
|
{
|
||||||
|
if( !aSolid->IsRoutable() )
|
||||||
|
return;
|
||||||
|
|
||||||
// fixme: redundant code
|
// fixme: redundant code
|
||||||
JOINT* jt = FindJoint( aSolid->Pos(), aSolid->Layers().Start(), aSolid->Net() );
|
JOINT* jt = FindJoint( aSolid->Pos(), aSolid->Layers().Start(), aSolid->Net() );
|
||||||
assert( jt );
|
assert( jt );
|
||||||
|
|
Loading…
Reference in New Issue