Browse Source

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)
7.0
Seth Hillbrand 4 years ago
parent
commit
ce9bd780d1
  1. 5
      eeschema/symbol_editor/symbol_editor.cpp

5
eeschema/symbol_editor/symbol_editor.cpp

@ -769,9 +769,12 @@ void SYMBOL_EDIT_FRAME::UpdateAfterSymbolProperties( wxString* aOldName )
RebuildSymbolUnitsList();
SetShowDeMorgan( GetCurSymbol()->Flatten()->HasConversion() );
updateTitle();
UpdateMsgPanel();
// 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();
OnModify();
}

Loading…
Cancel
Save