router: fixed loop removal issue
This commit is contained in:
parent
eb71c15b46
commit
f6689f75a8
|
@ -251,7 +251,7 @@ void PNS_TOOL_BASE::updateEndItem( TOOL_EVENT& aEvent )
|
|||
|
||||
m_router->EnableSnapping( snapEnabled );
|
||||
|
||||
if( !snapEnabled || m_router->GetCurrentNet() < 0 || !m_startItem )
|
||||
if( m_router->GetCurrentNet() < 0 )
|
||||
{
|
||||
m_endItem = NULL;
|
||||
m_endSnapPoint = cp;
|
||||
|
@ -265,7 +265,7 @@ void PNS_TOOL_BASE::updateEndItem( TOOL_EVENT& aEvent )
|
|||
else
|
||||
layer = m_router->GetCurrentLayer();
|
||||
|
||||
PNS_ITEM* endItem = pickSingleItem( p, m_startItem->Net(), layer );
|
||||
PNS_ITEM* endItem = pickSingleItem( p, m_router->GetCurrentNet(), layer );
|
||||
|
||||
if( endItem )
|
||||
{
|
||||
|
|
|
@ -517,6 +517,7 @@ void ROUTER_TOOL::performRouting()
|
|||
// Synchronize the indicated layer
|
||||
m_frame->SetActiveLayer( ToLAYER_ID( m_router->GetCurrentLayer() ) );
|
||||
m_router->Move( m_endSnapPoint, m_endItem );
|
||||
m_startItem = NULL;
|
||||
}
|
||||
else if( evt->IsAction( &ACT_PlaceThroughVia ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue