Fix crash when changing sheet file name and search panel is visible.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19232
This commit is contained in:
@@ -2122,6 +2122,11 @@ int SCH_EDIT_TOOL::Properties( const TOOL_EVENT& aEvent )
|
||||
}
|
||||
else
|
||||
{
|
||||
std::vector<SCH_ITEM*> items;
|
||||
|
||||
items.emplace_back( sheet );
|
||||
m_frame->Schematic().OnItemsRemoved( items );
|
||||
m_frame->Schematic().OnItemsAdded( items );
|
||||
m_frame->Schematic().RefreshHierarchy();
|
||||
m_frame->UpdateHierarchyNavigator();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user