diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/condformat/condformatdlg.cxx | 2 |
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; |