Kaydet (Commit) e32c8293 authored tarafından Eike Rathke's avatar Eike Rathke

Resolves: tdf#105410 do not crash on a deleted format

... if the last condition was deleted and the Manage list is to be
updated. The format is gone.

Change-Id: I0fc056b5c75849197f351871b0d05e5015d0d1bf
üst b87df034
......@@ -659,9 +659,12 @@ void ScCondFormatDlg::OkPressed()
nKey = pList->getMaxKey() + 1;
}
pFormat->SetKey(nKey);
pList->erase(nKey);
pList->InsertNew(pFormat);
if (pFormat)
{
pFormat->SetKey(nKey);
pList->InsertNew(pFormat);
}
mpViewData->GetViewShell()->GetPool().Put(*mpDlgItem);
SetDispatcherLock( false );
......
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