Browse Source

Always update the hierarchy navigator when setting the current sheet in the frame

Fix #9221
6.0.7
Marek Roszko 4 years ago
parent
commit
064ab933dd
  1. 2
      eeschema/hierarch.cpp
  2. 2
      eeschema/tools/sch_editor_control.cpp
  3. 2
      eeschema/tools/sch_navigate_tool.cpp

2
eeschema/hierarch.cpp

@ -314,4 +314,6 @@ void SCH_EDIT_FRAME::DisplayCurrentSheet()
editTool->UpdateNetHighlighting( dummy );
HardRedraw(); // Ensure all items are redrawn (especially the drawing-sheet items)
UpdateHierarchyNavigator();
}

2
eeschema/tools/sch_editor_control.cpp

@ -1987,7 +1987,6 @@ int SCH_EDITOR_CONTROL::EnterSheet( const TOOL_EVENT& aEvent )
m_frame->GetCurrentSheet().push_back( sheet );
m_frame->DisplayCurrentSheet();
m_frame->UpdateHierarchyNavigator();
}
return 0;
@ -2006,7 +2005,6 @@ int SCH_EDITOR_CONTROL::LeaveSheet( const TOOL_EVENT& aEvent )
m_frame->GetCurrentSheet().pop_back();
m_frame->DisplayCurrentSheet();
m_frame->UpdateHierarchyNavigator();
}
return 0;

2
eeschema/tools/sch_navigate_tool.cpp

@ -91,7 +91,6 @@ int SCH_NAVIGATE_TOOL::EnterSheet( const TOOL_EVENT& aEvent )
m_frame->GetCurrentSheet().push_back( sheet );
m_frame->DisplayCurrentSheet();
m_frame->UpdateHierarchyNavigator();
}
return 0;
@ -107,7 +106,6 @@ int SCH_NAVIGATE_TOOL::LeaveSheet( const TOOL_EVENT& aEvent )
m_frame->GetCurrentSheet().pop_back();
m_frame->DisplayCurrentSheet();
m_frame->UpdateHierarchyNavigator();
}
return 0;

Loading…
Cancel
Save