From 0a58de0c46bebb0d6f926c5b5cfd2529c025634a Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 19 Apr 2018 16:17:40 +0200 Subject: [PATCH] Selection Tool: reset is-hover flag Fixes: lp:1765034 * https://bugs.launchpad.net/kicad/+bug/1765034 --- pcbnew/tools/selection_tool.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/selection_tool.cpp b/pcbnew/tools/selection_tool.cpp index f6d0da6634..71b1176536 100644 --- a/pcbnew/tools/selection_tool.cpp +++ b/pcbnew/tools/selection_tool.cpp @@ -369,12 +369,15 @@ SELECTION& SELECTION_TOOL::GetSelection() SELECTION& SELECTION_TOOL::RequestSelection( int aFlags, CLIENT_SELECTION_FILTER aClientFilter ) { - if( m_selection.Empty() ) + bool selectionEmpty = m_selection.Empty(); + m_selection.SetIsHover( selectionEmpty ); + + if( selectionEmpty ) { if( aFlags & SELECTION_FORCE_UNLOCK ) m_locked = false; + m_toolMgr->RunAction( PCB_ACTIONS::selectionCursor, true, aClientFilter ); - m_selection.SetIsHover( true ); m_selection.ClearReferencePoint(); }