diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index 6e94f39d2a..abf4622f8a 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -840,14 +840,16 @@ int ROUTER_TOOL::RouteDiffPair( const TOOL_EVENT& aEvent ) return mainLoop( PNS::PNS_MODE_ROUTE_DIFF_PAIR ); } + void ROUTER_TOOL::breakTrack() { - if ( m_startItem->OfKind( PNS::ITEM::SEGMENT_T ) ) + if( m_startItem && m_startItem->OfKind( PNS::ITEM::SEGMENT_T ) ) { m_router->BreakSegment( m_startItem, m_startSnapPoint ); } } + int ROUTER_TOOL::mainLoop( PNS::ROUTER_MODE aMode ) { PCB_EDIT_FRAME* frame = getEditFrame();