Lifecycle safety for highlight net items.
This possibly fixes Sentry issue KICAD-6E.
This commit is contained in:
parent
22497502e6
commit
6de25e2284
|
@ -1438,11 +1438,14 @@ void SCH_EDIT_FRAME::initScreenZoom()
|
||||||
void SCH_EDIT_FRAME::RecalculateConnections( SCH_CLEANUP_FLAGS aCleanupFlags )
|
void SCH_EDIT_FRAME::RecalculateConnections( SCH_CLEANUP_FLAGS aCleanupFlags )
|
||||||
{
|
{
|
||||||
const SCH_CONNECTION* highlight = GetHighlightedConnection();
|
const SCH_CONNECTION* highlight = GetHighlightedConnection();
|
||||||
SCH_ITEM* highlightedItem = highlight ? highlight->Parent() : nullptr;
|
SCH_ITEM* highlightedItem = nullptr;
|
||||||
SCH_SHEET_PATH highlightPath;
|
SCH_SHEET_PATH highlightPath;
|
||||||
|
|
||||||
if( highlight )
|
if( highlight )
|
||||||
|
{
|
||||||
highlightPath = highlight->LocalSheet();
|
highlightPath = highlight->LocalSheet();
|
||||||
|
highlightedItem = dynamic_cast<SCH_ITEM*>( GetItem( highlight->Parent()->m_Uuid ) );
|
||||||
|
}
|
||||||
|
|
||||||
SCHEMATIC_SETTINGS& settings = Schematic().Settings();
|
SCHEMATIC_SETTINGS& settings = Schematic().Settings();
|
||||||
SCH_SHEET_LIST list = Schematic().GetSheets();
|
SCH_SHEET_LIST list = Schematic().GetSheets();
|
||||||
|
|
Loading…
Reference in New Issue