Repair over-zealous grid change.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15526
This commit is contained in:
Jeff Young 2023-08-29 12:15:50 +01:00
parent c3d6fecccc
commit 6f1a41f810
1 changed files with 1 additions and 2 deletions

View File

@ -238,8 +238,7 @@ bool SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection( const TOOL_EVENT& aEvent, SCH_COM
else if( m_frame->GetMoveWarpsCursor() )
{
VECTOR2I itemPos = selection.GetTopLeftItem()->GetPosition();
m_anchorPos = grid.AlignGrid( VECTOR2I( itemPos.x, -itemPos.y ),
grid.GetSelectionGrid( selection ) );
m_anchorPos = VECTOR2I( itemPos.x, -itemPos.y );
getViewControls()->WarpMouseCursor( m_anchorPos, true, true );
m_cursor = m_anchorPos;