Gerbview: Empty highlight menu before building the new menu

Fixes https://gitlab.com/kicad/code/kicad/issues/4716
This commit is contained in:
Ian McInerney 2020-07-07 11:46:46 +01:00
parent f3e44fb029
commit 4fe4870d86
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,8 @@ private:
{
bool addSeparator = false;
Clear();
const auto& selection = getToolManager()->GetTool<GERBVIEW_SELECTION_TOOL>()->GetSelection();
if( selection.Size() == 1 )