Fix crash bug closing schematic with sheet selected.
This commit is contained in:
parent
a1508d2531
commit
45618327cf
|
@ -576,6 +576,9 @@ int EE_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
}
|
||||
|
||||
// Shutting down; clear the selection
|
||||
m_selection.Clear();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -358,6 +358,9 @@ int SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
}
|
||||
|
||||
// Shutting down; clear the selection
|
||||
m_selection.Clear();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue