PNS: initalize starting point.

This commit is contained in:
Maciej Suminski 2015-07-07 18:36:45 +02:00
parent 8e98008f67
commit 5b7d08f2fd
1 changed files with 4 additions and 1 deletions

View File

@ -315,6 +315,7 @@ void ROUTER_TOOL::getNetclassDimensions( int aNetCode, int& aWidth,
aViaDrill = netClass->GetViaDrill();
}
void ROUTER_TOOL::handleCommonEvents( const TOOL_EVENT& aEvent )
{
#ifdef DEBUG
@ -659,6 +660,8 @@ int ROUTER_TOOL::mainLoop( PNS_ROUTER_MODE aMode )
m_ctls->SetSnapping( true );
m_ctls->ShowCursor( true );
m_startSnapPoint = getViewControls()->GetCursorPosition();
std::auto_ptr<ROUTER_TOOL_MENU> ctxMenu( new ROUTER_TOOL_MENU( board, aMode ) );
SetContextMenu( ctxMenu.get() );