From 36119b869c49e2b92e46f79506ffcbde281ca587 Mon Sep 17 00:00:00 2001 From: John Beard Date: Wed, 22 May 2024 11:15:51 +0800 Subject: [PATCH] Pcbnew: Fix context menu when moving The EDIT_TOOL is actually 'co-operating' with the SELECTION_TOOL by putting its tools into the SELECTION_TOOL's menu. This means the EDIT_TOOL::m_menu is sad and empty inside, and if you show it, it either doesn't show at all, or a tiny stub is shown. (cherry picked from commit af74d2a7465b58c35adc265a579cefc406a9be77) --- pcbnew/tools/edit_tool_move_fct.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/edit_tool_move_fct.cpp b/pcbnew/tools/edit_tool_move_fct.cpp index da911ebe06..e7837665e0 100644 --- a/pcbnew/tools/edit_tool_move_fct.cpp +++ b/pcbnew/tools/edit_tool_move_fct.cpp @@ -677,7 +677,7 @@ bool EDIT_TOOL::doMoveSelection( const TOOL_EVENT& aEvent, BOARD_COMMIT* aCommit } else if( evt->IsClick( BUT_RIGHT ) ) { - m_menu.ShowContextMenu( selection ); + m_selectionTool->GetToolMenu().ShowContextMenu( selection ); } else if( evt->IsAction( &ACTIONS::undo ) || evt->IsAction( &ACTIONS::doDelete ) ) {