diff options
Diffstat (limited to 'sw/source/ui/misc/outline.cxx')
-rw-r--r-- | sw/source/ui/misc/outline.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx index 2249dba318b0..92bfbbeaab88 100644 --- a/sw/source/ui/misc/outline.cxx +++ b/sw/source/ui/misc/outline.cxx @@ -276,9 +276,9 @@ IMPL_LINK(SwOutlineTabDialog, MenuSelectHdl, const OUString&, rIdent, void) return; } - if( nLevelNo-- ) + if (nLevelNo > 0) { - const SwNumRulesWithName *pRules = m_pChapterNumRules->GetRules( nLevelNo ); + const SwNumRulesWithName *pRules = m_pChapterNumRules->GetRules(nLevelNo - 1); if( pRules ) { pRules->ResetNumRule(m_rWrtSh, *m_xNumRule); |