eeschema: Fixes wrong displayed secondary worksheet

Fixes https://gitlab.com/kicad/code/kicad/issues/12017
This commit is contained in:
BugRepellentExtraStrong 2022-08-13 12:08:52 +02:00 committed by Seth Hillbrand
parent 2ee65b2d83
commit 02a6566438
1 changed files with 1 additions and 7 deletions

View File

@ -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;