Gerbview: Empty highlight menu before building the new menu
Fixes https://gitlab.com/kicad/code/kicad/issues/4716
This commit is contained in:
parent
f3e44fb029
commit
4fe4870d86
|
@ -57,6 +57,8 @@ private:
|
||||||
{
|
{
|
||||||
bool addSeparator = false;
|
bool addSeparator = false;
|
||||||
|
|
||||||
|
Clear();
|
||||||
|
|
||||||
const auto& selection = getToolManager()->GetTool<GERBVIEW_SELECTION_TOOL>()->GetSelection();
|
const auto& selection = getToolManager()->GetTool<GERBVIEW_SELECTION_TOOL>()->GetSelection();
|
||||||
|
|
||||||
if( selection.Size() == 1 )
|
if( selection.Size() == 1 )
|
||||||
|
|
Loading…
Reference in New Issue