Fixed snapping for Push and Shove router.

This commit is contained in:
Maciej Suminski 2014-01-07 14:21:37 +01:00
parent 3fe183c472
commit 69cf8aa325
1 changed files with 2 additions and 1 deletions

View File

@ -278,7 +278,7 @@ void ROUTER_TOOL::updateEndItem( TOOL_EVENT& aEvent )
else
{
m_endItem = NULL;
m_endSnapPoint = p;
m_endSnapPoint = getView()->ToWorld( ctls->GetCursorPosition() );
ctls->ForceCursorPosition( false );
}
@ -407,6 +407,7 @@ int ROUTER_TOOL::Main( TOOL_EVENT& aEvent )
// Restore the default settings
ctls->SetAutoPan( false );
ctls->ShowCursor( false );
ctls->ForceCursorPosition( false );
return 0;
}