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:
BugRepellentExtraStrong 2022-08-13 12:08:52 +02:00 committed by Roberto Fernandez Bautista
parent e760579828
commit 6d14ce24aa
1 changed files with 1 additions and 7 deletions

View File

@ -500,18 +500,12 @@ int SCH_EDITOR_CONTROL::FindNext( const TOOL_EVENT& aEvent )
continue; continue;
} }
sheet->UpdateAllScreenReferences();
item = nextMatch( sheet->LastScreen(), sheet, nullptr, data ); item = nextMatch( sheet->LastScreen(), sheet, nullptr, data );
if( item ) if( item )
{ {
m_frame->Schematic().SetCurrentSheet( *sheet ); m_frame->Schematic().SetCurrentSheet( *sheet );
m_frame->DisplayCurrentSheet();
sheet->LastScreen()->TestDanglingEnds();
m_frame->SetScreen( sheet->LastScreen() );
m_frame->UpdateHierarchyNavigator();
UpdateFind( ACTIONS::updateFind.MakeEvent() ); UpdateFind( ACTIONS::updateFind.MakeEvent() );
break; break;