From 13fcb571f7e5bf4bf142d151651fc577aca32053 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 27 Jan 2024 10:06:21 +0100 Subject: [PATCH] Eeschema, hierarchy navigator: right click on an item must select the corresponding sheet, not the currently opened sheet. From master branch Fixes #16670 https://gitlab.com/kicad/code/kicad/-/issues/16670 --- eeschema/widgets/hierarchy_pane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/widgets/hierarchy_pane.cpp b/eeschema/widgets/hierarchy_pane.cpp index f6797f1cbb..7742a3c6d1 100644 --- a/eeschema/widgets/hierarchy_pane.cpp +++ b/eeschema/widgets/hierarchy_pane.cpp @@ -257,7 +257,7 @@ void HIERARCHY_PANE::onSelectSheetPath( wxTreeEvent& aEvent ) void HIERARCHY_PANE::onRightClick( wxTreeEvent& aEvent ) { - wxTreeItemId itemSel = m_tree->GetFocusedItem(); + wxTreeItemId itemSel = aEvent.GetItem(); if( !itemSel.IsOk() ) return;