libedit: Fix inverted Y axis on move command
Also clean up some code formatting issues
This commit is contained in:
parent
92fe201c5b
commit
49dd5d838c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue