pcbnew: Prevent redo while moving items

Fixes: lp:1793948
* https://bugs.launchpad.net/kicad/+bug/1793948

(cherry picked from commit c5c89fd216)
This commit is contained in:
Seth Hillbrand 2018-09-23 06:02:01 -07:00
parent ae13e441af
commit e0316af69c
1 changed files with 3 additions and 0 deletions

View File

@ -449,6 +449,7 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
}
}
editFrame->UndoRedoBlock( true );
m_cursor = controls->GetCursorPosition();
if ( selection.HasReferencePoint() )
@ -560,6 +561,8 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
controls->SetAutoPan( false );
m_dragging = false;
editFrame->UndoRedoBlock( false );
// Discard reference point when selection is "dropped" onto the board (ie: not dragging anymore)
selection.ClearReferencePoint();