Simplified the wxCENTRE style check

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Hock 2004-11-06 02:19:33 +00:00
parent 04a014a5d6
commit 01e1314745

View File

@ -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);