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;
|
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;
|
||||||
|
|
Loading…
Reference in New Issue