summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc/outline.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/misc/outline.cxx')
-rw-r--r--sw/source/ui/misc/outline.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx
index 112d35de150d..424b4c22b381 100644
--- a/sw/source/ui/misc/outline.cxx
+++ b/sw/source/ui/misc/outline.cxx
@@ -93,7 +93,7 @@ void SwNumNamesDlg::SetUserNames(const OUString *pList[])
{
m_xFormBox->remove(i);
m_xFormBox->insert_text(i, *pList[i]);
- if (i == nSelect && nSelect < SwChapterNumRules::nMaxRules)
+ if (i == nSelect)
nSelect++;
}
}