X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1970409e33ce5aa182fa40ea499e532fdbf1982d..57e9abd61307aa069b2cb449d215896e97857f5e:/src/generic/msgdlgg.cpp?ds=sidebyside diff --git a/src/generic/msgdlgg.cpp b/src/generic/msgdlgg.cpp index d479248158..bded8f883f 100644 --- a/src/generic/msgdlgg.cpp +++ b/src/generic/msgdlgg.cpp @@ -107,7 +107,11 @@ void wxGenericMessageDialog::DoCreateMsgdialog() int center_flag = wxEXPAND; if (m_dialogStyle & wxYES_NO) center_flag = wxALIGN_CENTRE; - wxSizer *sizerBtn = CreateSeparatedButtonSizer(m_dialogStyle & ButtonSizerFlags); + wxSizer *sizerBtn = CreateSeparatedButtonSizer + ( + m_dialogStyle & (wxOK | wxCANCEL | wxYES_NO | + wxNO_DEFAULT | wxCANCEL_DEFAULT) + ); if ( sizerBtn ) topsizer->Add(sizerBtn, 0, center_flag | wxALL, 10 );