Kaydet (Commit) 7f127204 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

prevent crash when no cond format will be defined in cond format dlg

Change-Id: Iffc54ada1fcf586c00eddf934079fa671f263ce0
üst d8a85436
...@@ -257,6 +257,9 @@ IMPL_LINK_NOARG(ScCondFormatManagerDlg, AddBtnHdl) ...@@ -257,6 +257,9 @@ IMPL_LINK_NOARG(ScCondFormatManagerDlg, AddBtnHdl)
if(pDlg->Execute() == RET_OK) if(pDlg->Execute() == RET_OK)
{ {
ScConditionalFormat* pNewFormat = pDlg->GetConditionalFormat(); ScConditionalFormat* pNewFormat = pDlg->GetConditionalFormat();
if(!pNewFormat)
return 0;
mpFormatList->InsertNew(pNewFormat); mpFormatList->InsertNew(pNewFormat);
pNewFormat->SetKey(FindKey(mpFormatList)); pNewFormat->SetKey(FindKey(mpFormatList));
maCtrlManager.Update(); maCtrlManager.Update();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment