summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/number.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/number.cxx')
-rw-r--r--sw/source/core/doc/number.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx
index c6e26fe9aa0b..a49055fe0075 100644
--- a/sw/source/core/doc/number.cxx
+++ b/sw/source/core/doc/number.cxx
@@ -1128,9 +1128,9 @@ namespace numfunc
}
inline sal_Unicode GetChar( sal_uInt8 p_nListLevel ) const
{
- if ( p_nListLevel > MAXLEVEL )
+ if (p_nListLevel >= MAXLEVEL)
{
- p_nListLevel = MAXLEVEL;
+ p_nListLevel = MAXLEVEL - 1;
}
return mnLevelChars[p_nListLevel];