router: fixed loop removal issue

This commit is contained in:
Tomasz Wlostowski 2015-08-18 11:38:17 +02:00 committed by Maciej Suminski
parent eb71c15b46
commit f6689f75a8
2 changed files with 3 additions and 2 deletions

View File

@ -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 )
{

View File

@ -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 ) )
{