Eeschema, hierarchy navigator: right click on an item must select the corresponding

sheet, not the currently opened sheet.
Fixes #16670
https://gitlab.com/kicad/code/kicad/-/issues/16670
This commit is contained in:
jean-pierre charras 2024-01-23 18:11:33 +01:00
parent 8410a5e685
commit 8d2784b822
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ void HIERARCHY_PANE::onSelectSheetPath( wxTreeEvent& aEvent )
void HIERARCHY_PANE::onRightClick( wxTreeEvent& aEvent )
{
wxTreeItemId itemSel = m_tree->GetSelection();
wxTreeItemId itemSel = aEvent.GetItem();
if( !itemSel.IsOk() )
return;