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:
@@ -135,7 +135,7 @@ wxTextEntryDialog::wxTextEntryDialog(wxWindow *parent,
|
|||||||
topsizer->SetSizeHints( this );
|
topsizer->SetSizeHints( this );
|
||||||
topsizer->Fit( this );
|
topsizer->Fit( this );
|
||||||
|
|
||||||
if ( ( style & wxCENTRE ) == wxCENTRE )
|
if ( style & wxCENTRE )
|
||||||
Centre( wxBOTH );
|
Centre( wxBOTH );
|
||||||
|
|
||||||
m_textctrl->SetSelection(-1, -1);
|
m_textctrl->SetSelection(-1, -1);
|
||||||
|
Reference in New Issue
Block a user