Fix crash due to cleared view data
When changing fields, we need to update the view before allowing canvas updates
This commit is contained in:
parent
bfa1661edf
commit
851f893e8e
|
@ -769,9 +769,12 @@ void SYMBOL_EDIT_FRAME::UpdateAfterSymbolProperties( wxString* aOldName )
|
||||||
RebuildSymbolUnitsList();
|
RebuildSymbolUnitsList();
|
||||||
SetShowDeMorgan( GetCurSymbol()->Flatten()->HasConversion() );
|
SetShowDeMorgan( GetCurSymbol()->Flatten()->HasConversion() );
|
||||||
updateTitle();
|
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();
|
UpdateMsgPanel();
|
||||||
|
|
||||||
RebuildView();
|
|
||||||
OnModify();
|
OnModify();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue