summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-06 01:13:57 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-06 21:25:10 +0200
commit32d8c9b96cef77fd563ca1ab0c3943f783f1b16a (patch)
tree6e6dde0d245d54bad36baba6e773fa6aa7198c08 /sc
parent0e7e65d0480f63000b46b8009becf749e8a1d765 (diff)
fix another crash in cond format dialog with range name list
Change-Id: I84f9c71fd7f80ad9300f4f7b2c273cd9af0f075e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/condformat/condformatdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx
index 2e294f2741c3..e2f8d679a978 100644
--- a/sc/source/ui/condformat/condformatdlg.cxx
+++ b/sc/source/ui/condformat/condformatdlg.cxx
@@ -1116,7 +1116,7 @@ ScConditionalFormat* ScCondFormatDlg::GetConditionalFormat() const
sal_uInt16 nFlags = aRange.Parse(aRangeStr, mpDoc, SCA_VALID, mpDoc->GetAddressConvention());
ScConditionalFormat* pFormat = maCondFormList.GetConditionalFormat();
- if(nFlags & SCA_VALID && !aRange.empty())
+ if(nFlags & SCA_VALID && !aRange.empty() && pFormat)
pFormat->AddRange(aRange);
return pFormat;