Use mathematical rotation direction in Move Exactly dialog.

Fixes https://gitlab.com/kicad/code/kicad/issues/1897
This commit is contained in:
Jeff Young 2021-10-03 00:02:53 +01:00
parent 574bef2237
commit 5c402a64ab
1 changed files with 3 additions and 0 deletions

View File

@ -2049,6 +2049,9 @@ int EDIT_TOOL::MoveExact( const TOOL_EVENT& aEvent )
// Make sure the rotation is from the right reference point
selCenter += translation;
if( !frame()->GetDisplayOptions().m_DisplayInvertYAxis )
rotation *= -1.0;
// When editing footprints, all items have the same parent
if( IsFootprintEditor() )
m_commit->Modify( selection.Front() );