diff --git a/src/generic/textdlgg.cpp b/src/generic/textdlgg.cpp index 276e745fb6..fa240b4f50 100644 --- a/src/generic/textdlgg.cpp +++ b/src/generic/textdlgg.cpp @@ -135,7 +135,7 @@ wxTextEntryDialog::wxTextEntryDialog(wxWindow *parent, topsizer->SetSizeHints( this ); topsizer->Fit( this ); - if ( ( style & wxCENTRE ) == wxCENTRE ) + if ( style & wxCENTRE ) Centre( wxBOTH ); m_textctrl->SetSelection(-1, -1);