]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/textdlgg.cpp
Set initial window size as its minimal size.
[wxWidgets.git] / src / generic / textdlgg.cpp
index 16cfd7d9d5420bbe18575422cfec625275b5a93e..d1f96ebfe5368c861519c1042c28b3b1f4a45036 100644 (file)
@@ -107,7 +107,7 @@ wxTextEntryDialog::wxTextEntryDialog(wxWindow *parent,
 #endif // wxUSE_VALIDATORS
 
     // 3) buttons if any
-    wxSizer *buttonSizer = CreateSeparatedButtonSizer(style & ButtonSizerFlags);
+    wxSizer *buttonSizer = CreateSeparatedButtonSizer(style & (wxOK | wxCANCEL));
     if ( buttonSizer )
     {
         topsizer->Add(buttonSizer, wxSizerFlags(flagsBorder2).Expand());