]> git.saurik.com Git - wxWidgets.git/commitdiff
a small cosmetic fix for single choice dialog
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Jun 1999 13:55:18 +0000 (13:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Jun 1999 13:55:18 +0000 (13:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/choicdgg.cpp

index be19331e80c387ced83df79d8b51b76e8c8d8bb1..25483ca765bee41507a452df54fef1f5e5a567c4 100644 (file)
@@ -340,7 +340,7 @@ bool wxSingleChoiceDialog::Create( wxWindow *WXUNUSED(parent),
                    hButton +            // button(s)
                    LAYOUT_Y_MARGIN;     // bottom margin
 
-    long wDialog = wxMax(wTotalButtons, widthTextMax) +
+    long wDialog = wxMax(wListbox, wxMax(wTotalButtons, widthTextMax)) +
                    4*LAYOUT_X_MARGIN;   // 2 from each side
 
     // create the controls