Fix crash when loading new schematic with something selected
This commit is contained in:
parent
31d502735c
commit
70c90266a8
|
@ -1449,6 +1449,9 @@ void SCH_EDIT_FRAME::UpdateNetHighlightStatus()
|
|||
|
||||
void SCH_EDIT_FRAME::SetScreen( BASE_SCREEN* aScreen )
|
||||
{
|
||||
if( m_toolManager )
|
||||
m_toolManager->RunAction( EE_ACTIONS::clearSelection, true );
|
||||
|
||||
SCH_BASE_FRAME::SetScreen( aScreen );
|
||||
GetCanvas()->DisplaySheet( static_cast<SCH_SCREEN*>( aScreen ) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue