Fix crash bug closing schematic with sheet selected.

This commit is contained in:
Jeff Young 2020-10-30 13:57:59 +00:00
parent a1508d2531
commit 45618327cf
2 changed files with 6 additions and 0 deletions

View File

@ -576,6 +576,9 @@ int EE_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
}
}
// Shutting down; clear the selection
m_selection.Clear();
return 0;
}

View File

@ -358,6 +358,9 @@ int SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
}
}
// Shutting down; clear the selection
m_selection.Clear();
return 0;
}