Fix crash due to cleared view data

When changing fields, we need to update the view before allowing canvas
updates

(cherry picked from commit 851f893e8e)
This commit is contained in:
Seth Hillbrand 2022-04-15 14:56:18 -07:00
parent 7f3a75bccd
commit ce9bd780d1
1 changed files with 4 additions and 1 deletions

View File

@ -769,9 +769,12 @@ void SYMBOL_EDIT_FRAME::UpdateAfterSymbolProperties( wxString* aOldName )
RebuildSymbolUnitsList();
SetShowDeMorgan( GetCurSymbol()->Flatten()->HasConversion() );
updateTitle();
// N.B. The view needs to be rebuilt first as the Symbol Properties change may invalidate
// the view pointers by rebuilting the field table
RebuildView();
UpdateMsgPanel();
RebuildView();
OnModify();
}