diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/conditio.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index 1b869827372c..0ff379f1f0ab 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -1615,7 +1615,7 @@ bool ScCondDateFormatEntry::IsValid( const ScAddress& rPos ) const if( eDay != SUNDAY ) { Date aBegin(rActDate - (1 + static_cast<sal_Int32>(eDay))); - Date aEnd(rActDate + (5 + static_cast<sal_Int32>(eDay))); + Date aEnd(rActDate + (5 - static_cast<sal_Int32>(eDay))); return aCellDate.IsBetween( aBegin, aEnd ); } else |