Selection Tool: reset is-hover flag

Fixes: lp:1765034
* https://bugs.launchpad.net/kicad/+bug/1765034
This commit is contained in:
Maciej Suminski 2018-04-19 16:17:40 +02:00
parent dce0743ddb
commit 0a58de0c46
1 changed files with 5 additions and 2 deletions

View File

@ -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();
}