Commit 69cf8aa3 authored by Maciej Suminski's avatar Maciej Suminski

Fixed snapping for Push and Shove router.

parent 3fe183c4
...@@ -278,7 +278,7 @@ void ROUTER_TOOL::updateEndItem( TOOL_EVENT& aEvent ) ...@@ -278,7 +278,7 @@ void ROUTER_TOOL::updateEndItem( TOOL_EVENT& aEvent )
else else
{ {
m_endItem = NULL; m_endItem = NULL;
m_endSnapPoint = p; m_endSnapPoint = getView()->ToWorld( ctls->GetCursorPosition() );
ctls->ForceCursorPosition( false ); ctls->ForceCursorPosition( false );
} }
...@@ -407,6 +407,7 @@ int ROUTER_TOOL::Main( TOOL_EVENT& aEvent ) ...@@ -407,6 +407,7 @@ int ROUTER_TOOL::Main( TOOL_EVENT& aEvent )
// Restore the default settings // Restore the default settings
ctls->SetAutoPan( false ); ctls->SetAutoPan( false );
ctls->ShowCursor( false ); ctls->ShowCursor( false );
ctls->ForceCursorPosition( false );
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment