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:
parent
7f3a75bccd
commit
ce9bd780d1
|
@ -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