summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-05-12 21:42:12 +0200
committerMichael Stahl <mstahl@redhat.com>2014-05-12 21:44:02 +0200
commit121e0d2e9d1b76fe89c5925b1b4a29b22895237e (patch)
treeec735f91f4f1cb17bbf0b85733b5eb12154c8259 /sw
parent28fe3628ed22a17eeb5a402724fea6558b2ba6bf (diff)
fdo#78271: sw: Insert Section dialog: fix editing of name
... to not disable the "OK" button due to 32-bit combo-box no longer using 2^16-1 for "not found". (regression from 68ec95b3f80408ae50897b043eed69a07d084df9) Change-Id: I691e5e81de4a112108741513251945f1b8dd88d4
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dialog/uiregionsw.cxx3
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)