From c5c89fd2164c68df437d289ae39b4f6e39227bcd Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 23 Sep 2018 06:02:01 -0700 Subject: [PATCH] pcbnew: Prevent redo while moving items Fixes: lp:1793948 * https://bugs.launchpad.net/kicad/+bug/1793948 --- pcbnew/tools/edit_tool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index e0d13f48c5..6513475b7c 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -481,6 +481,7 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent ) } } + editFrame->UndoRedoBlock( true ); m_cursor = controls->GetCursorPosition(); if ( selection.HasReferencePoint() ) @@ -592,6 +593,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();