summaryrefslogtreecommitdiff
path: root/sc/source/ui/condformat/condformatmgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/condformat/condformatmgr.cxx')
-rw-r--r--sc/source/ui/condformat/condformatmgr.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/condformat/condformatmgr.cxx b/sc/source/ui/condformat/condformatmgr.cxx
index 5a5ea1b56dc9..e9278a010b2b 100644
--- a/sc/source/ui/condformat/condformatmgr.cxx
+++ b/sc/source/ui/condformat/condformatmgr.cxx
@@ -276,14 +276,14 @@ IMPL_LINK_NOARG(ScCondFormatManagerDlg, AddBtnHdl)
if(pDlg->Execute() == RET_OK)
{
ScConditionalFormat* pNewFormat = pDlg->GetConditionalFormat();
- if(!pNewFormat)
- return 0;
-
- mpFormatList->InsertNew(pNewFormat);
- pNewFormat->SetKey(FindKey(mpFormatList));
- maCtrlManager.Update();
+ if(pNewFormat)
+ {
+ mpFormatList->InsertNew(pNewFormat);
+ pNewFormat->SetKey(FindKey(mpFormatList));
+ maCtrlManager.Update();
- mbModified = true;
+ mbModified = true;
+ }
}
Show(true, 0);
pScMod->SetRefDialog( nId, false );