eeschema: Fixes wrong displayed secondary worksheet
Fixes https://gitlab.com/kicad/code/kicad/issues/12017
(cherry picked from commit 02a6566438
)
This commit is contained in:
parent
e760579828
commit
6d14ce24aa
|
@ -500,18 +500,12 @@ int SCH_EDITOR_CONTROL::FindNext( const TOOL_EVENT& aEvent )
|
|||
continue;
|
||||
}
|
||||
|
||||
sheet->UpdateAllScreenReferences();
|
||||
|
||||
item = nextMatch( sheet->LastScreen(), sheet, nullptr, data );
|
||||
|
||||
if( item )
|
||||
{
|
||||
m_frame->Schematic().SetCurrentSheet( *sheet );
|
||||
|
||||
sheet->LastScreen()->TestDanglingEnds();
|
||||
|
||||
m_frame->SetScreen( sheet->LastScreen() );
|
||||
m_frame->UpdateHierarchyNavigator();
|
||||
m_frame->DisplayCurrentSheet();
|
||||
UpdateFind( ACTIONS::updateFind.MakeEvent() );
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue