Browse Source

PNS router: reset forced cursor position

Track dragging forces the cursor position, which is still kept when PNS
router is launched again. It is avoided by resetting the force cursor
position option before running the event loop.
pull/5/merge
Maciej Suminski 8 years ago
parent
commit
6afdf1cf87
  1. 7
      pcbnew/router/router_tool.cpp

7
pcbnew/router/router_tool.cpp

@ -859,9 +859,10 @@ int ROUTER_TOOL::mainLoop( PNS::ROUTER_MODE aMode )
m_router->SetMode( aMode );
controls()->ShowCursor( true );
m_startSnapPoint = getViewControls()->GetCursorPosition();
VIEW_CONTROLS* ctls = getViewControls();
ctls->ShowCursor( true );
ctls->ForceCursorPosition( false );
m_startSnapPoint = ctls->GetCursorPosition();
std::unique_ptr<ROUTER_TOOL_MENU> ctxMenu( new ROUTER_TOOL_MENU( board, *frame, aMode ) );
SetContextMenu( ctxMenu.get() );

Loading…
Cancel
Save