Initialize clear annotation variable to false so they aren't cleared by accident

When it was uninitialized, cancelling the dialog could lead to the
sheet's annotations being cleared because the variable wasn't set
to false anywhere.
This commit is contained in:
Ian McInerney 2020-08-08 23:24:36 +01:00
parent 5c3bcb09fa
commit bab61dd249
1 changed files with 1 additions and 1 deletions

View File

@ -1057,7 +1057,7 @@ void SCH_EDIT_FRAME::OnEditItem( wxCommandEvent& aEvent )
case SCH_SHEET_T: case SCH_SHEET_T:
{ {
bool doClearAnnotation; bool doClearAnnotation = false;
bool doRefresh = false; bool doRefresh = false;
// Keep trace of existing sheet paths. EditSheet() can modify this list // Keep trace of existing sheet paths. EditSheet() can modify this list
SCH_SHEET_LIST initial_sheetpathList( g_RootSheet ); SCH_SHEET_LIST initial_sheetpathList( g_RootSheet );