PNS: initalize starting point.
This commit is contained in:
parent
8e98008f67
commit
5b7d08f2fd
|
@ -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() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue