libedit: Fix inverted Y axis on move command

Also clean up some code formatting issues
This commit is contained in:
Ian McInerney 2019-08-15 20:32:19 +02:00 committed by Jeff Young
parent 92fe201c5b
commit 49dd5d838c
2 changed files with 7 additions and 5 deletions

View File

@ -159,7 +159,9 @@ int LIB_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
} }
else if( selection.Size() == 1 && m_frame->GetMoveWarpsCursor() ) else if( selection.Size() == 1 && m_frame->GetMoveWarpsCursor() )
{ {
m_anchorPos = lib_item->GetPosition(); wxPoint itemPos = lib_item->GetPosition();
m_anchorPos = wxPoint( itemPos.x, -itemPos.y );
getViewControls()->WarpCursor( m_anchorPos, true, true ); getViewControls()->WarpCursor( m_anchorPos, true, true );
m_cursor = m_anchorPos; m_cursor = m_anchorPos;
} }