summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/tool/interpr2.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index 2a35f833a23e..bd255fc83290 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -324,8 +324,9 @@ sal_uInt16 ScInterpreter::GetWeekendAndHolidayMasks(
if ( nWeekendDays.size() != 7 )
return errIllegalArgument;
+ // Weekend days defined by string, Sunday...Saturday
for ( int i = 0; i < 7; i++ )
- bWeekendMask[ i ] = ( bool ) nWeekendDays[ i ];
+ bWeekendMask[ i ] = ( bool ) nWeekendDays[ ( i == 6 ? 0 : i + 1 ) ];
}
}
else