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

Caolán McNamara caolanm at redhat.com
Wed Aug 28 06:16:41 PDT 2013


 sw/source/ui/utlui/numfmtlb.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 6bdd62ac7b089cb4e622c632111bdea40517b3a7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Aug 28 14:09:38 2013 +0100

    autosize the user-defined number format listbox in database field tabpage
    
    Change-Id: I9349cfb30f544d6e64231910e3dad832a3770509

diff --git a/sw/source/ui/utlui/numfmtlb.cxx b/sw/source/ui/utlui/numfmtlb.cxx
index b09ead6..221f8ba 100644
--- a/sw/source/ui/utlui/numfmtlb.cxx
+++ b/sw/source/ui/utlui/numfmtlb.cxx
@@ -79,7 +79,12 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeNumFormatListBox(Window *pP
     else
         nBits |= WB_BORDER;
 
-    return new NumFormatListBox(pParent, nBits|WB_SIMPLEMODE);
+    NumFormatListBox* pListBox = new NumFormatListBox(pParent, nBits|WB_SIMPLEMODE);
+
+    if (bDropdown)
+        pListBox->EnableAutoSize(true);
+
+    return pListBox;
 }
 
 NumFormatListBox::NumFormatListBox( Window* pWin, SwView* pView,


More information about the Libreoffice-commits mailing list