Selection Tool: reset is-hover flag
Fixes: lp:1765034 * https://bugs.launchpad.net/kicad/+bug/1765034
This commit is contained in:
parent
dce0743ddb
commit
0a58de0c46
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue