diff options
-rw-r--r-- | sw/source/ui/dialog/uiregionsw.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index 548d8ba1f8e6..9f5385fd1734 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -1732,7 +1732,8 @@ IMPL_LINK( SwInsertSectionTabPage, ChangePasswdHdl, Button *, pButton ) IMPL_LINK_NOARG_INLINE_START(SwInsertSectionTabPage, NameEditHdl) { const OUString aName = m_pCurName->GetText(); - GetTabDialog()->GetOKButton().Enable(!aName.isEmpty() && m_pCurName->GetEntryPos( aName ) == USHRT_MAX); + GetTabDialog()->GetOKButton().Enable(!aName.isEmpty() && + m_pCurName->GetEntryPos( aName ) == LISTBOX_ENTRY_NOTFOUND); return 0; } IMPL_LINK_NOARG_INLINE_END(SwInsertSectionTabPage, NameEditHdl) |