diff options
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/conditio.cxx | 4 |
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()); |