From f20335cefe03e87f82e82f5738962eeb87dc0d87 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 5 Jul 2019 02:57:39 +0100 Subject: [PATCH] Apply fix from 5.1 branch. Fixes: lp:1834111 * https://bugs.launchpad.net/kicad/+bug/1834111 --- pcbnew/tools/edit_tool.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index b1a7a1ce18..995fb344b4 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -298,6 +298,9 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent ) TOOL_EVENT* evt = const_cast( &aEvent ); VECTOR2I prevPos; + // Prime the pump + m_toolMgr->RunAction( ACTIONS::refreshPreview ); + // Main loop: keep receiving events do { @@ -349,6 +352,8 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent ) if( lockFlags == SELECTION_LOCKED ) break; + m_dragging = true; + // When editing modules, all items have the same parent if( EditingModules() ) { @@ -407,7 +412,6 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent ) prevPos = m_cursor; controls->SetAutoPan( true ); - m_dragging = true; } m_toolMgr->PostEvent( EVENTS::SelectedItemsModified );