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
This commit is contained in:
jean-pierre charras 2024-01-27 10:06:21 +01:00
parent 9738a71922
commit 13fcb571f7
1 changed files with 1 additions and 1 deletions

View File

@ -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;