From 02a65664386ef1a0e4c53b6976ae81d3554fe9bf Mon Sep 17 00:00:00 2001 From: BugRepellentExtraStrong Date: Sat, 13 Aug 2022 12:08:52 +0200 Subject: [PATCH] eeschema: Fixes wrong displayed secondary worksheet Fixes https://gitlab.com/kicad/code/kicad/issues/12017 --- eeschema/tools/sch_editor_control.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/eeschema/tools/sch_editor_control.cpp b/eeschema/tools/sch_editor_control.cpp index 1cd4141351..643365d977 100644 --- a/eeschema/tools/sch_editor_control.cpp +++ b/eeschema/tools/sch_editor_control.cpp @@ -534,18 +534,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;