summaryrefslogtreecommitdiff
path: root/sc/source/core/data/conditio.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-11-29 15:36:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-11-29 15:36:22 +0100
commitef322b54fa92877cb237a157d66408112dcc2573 (patch)
tree23ab16b108b8d8baa8e63b0d9c67e372bd42e80a /sc/source/core/data/conditio.cxx
parent64ef3208df5115f0574f9d729c51f1cdb2fb05ed (diff)
Fix ScCondDateFormatEntry::mpCache
Change-Id: Iec348a367cedce8022f9be4be80adeaefab7b0a6
Diffstat (limited to 'sc/source/core/data/conditio.cxx')
-rw-r--r--sc/source/core/data/conditio.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 987e75ecaa1c..28d585fcf4c7 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1663,9 +1663,9 @@ bool ScCondDateFormatEntry::IsValid( const ScAddress& rPos ) const
return false;
if( !mpCache )
- mpCache->aCachedDate = Date( Date::SYSTEM );
+ mpCache.reset( new Date( Date::SYSTEM ) );
- const Date& rActDate = mpCache->aCachedDate;
+ const Date& rActDate = *mpCache;
SvNumberFormatter* pFormatter = mpDoc->GetFormatTable();
long nCurrentDate = rActDate - *(pFormatter->GetNullDate());