Show selection before opening menu.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15922
This commit is contained in:
Jeff Young 2023-11-03 12:32:26 +00:00
parent 141b953d12
commit db46b6f925
2 changed files with 6 additions and 0 deletions

View File

@ -188,6 +188,9 @@ int GERBVIEW_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
m_selection.SetIsHover( true );
}
// Show selection before opening menu
m_frame->GetCanvas()->ForceRefresh();
m_menu.ShowContextMenu( m_selection );
}
else if( evt->IsDblClick( BUT_MIDDLE ) )

View File

@ -127,6 +127,9 @@ int PL_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
m_selection.SetIsHover( true );
}
// Show selection before opening menu
m_frame->GetCanvas()->ForceRefresh();
if( !selectionCancelled )
m_menu.ShowContextMenu( m_selection );
}