[Libreoffice-commits] core.git: sw/source

Michael Stahl mstahl at redhat.com
Mon May 12 12:48:14 PDT 2014


 sw/source/ui/dialog/uiregionsw.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 121e0d2e9d1b76fe89c5925b1b4a29b22895237e
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon May 12 21:42:12 2014 +0200

    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

diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx
index 548d8ba..9f5385fd 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)


More information about the Libreoffice-commits mailing list