pcbnew: Prevent redo while moving items
Fixes: lp:1793948 * https://bugs.launchpad.net/kicad/+bug/1793948
This commit is contained in:
parent
1820e81f5e
commit
c5c89fd216
|
@ -481,6 +481,7 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
editFrame->UndoRedoBlock( true );
|
||||||
m_cursor = controls->GetCursorPosition();
|
m_cursor = controls->GetCursorPosition();
|
||||||
|
|
||||||
if ( selection.HasReferencePoint() )
|
if ( selection.HasReferencePoint() )
|
||||||
|
@ -592,6 +593,8 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
|
||||||
controls->SetAutoPan( false );
|
controls->SetAutoPan( false );
|
||||||
|
|
||||||
m_dragging = false;
|
m_dragging = false;
|
||||||
|
editFrame->UndoRedoBlock( false );
|
||||||
|
|
||||||
// Discard reference point when selection is "dropped" onto the board (ie: not dragging anymore)
|
// Discard reference point when selection is "dropped" onto the board (ie: not dragging anymore)
|
||||||
selection.ClearReferencePoint();
|
selection.ClearReferencePoint();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue