From 31a6a4adf0519389c52e43674f37acedc91b1115 Mon Sep 17 00:00:00 2001 From: Rohan Agrawal Date: Thu, 11 Feb 2016 18:26:40 -0800 Subject: [PATCH] Run fix_route until routing ended in EndTrack Should fix Bug 1424003, by making making sure the routing is completed when endtrack is triggered. --- pcbnew/router/router_tool.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index 1ab66f60e0..ee5f176e78 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -602,8 +602,11 @@ void ROUTER_TOOL::performRouting() } else if( evt->IsAction( &ACT_EndTrack ) ) { - if( m_router->FixRoute( m_endSnapPoint, m_endItem ) ) - break; + bool still_routing = true; + while( still_routing ) { + still_routing = m_router->FixRoute( m_endSnapPoint, m_endItem ); + } + break; } handleCommonEvents( *evt );