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:
parent
5c3bcb09fa
commit
bab61dd249
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue