]> git.saurik.com Git - wxWidgets.git/commitdiff
Simplified the wxCENTRE style check
authorKevin Hock <hockkn@yahoo.com>
Sat, 6 Nov 2004 02:19:33 +0000 (02:19 +0000)
committerKevin Hock <hockkn@yahoo.com>
Sat, 6 Nov 2004 02:19:33 +0000 (02:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/textdlgg.cpp

index 276e745fb6c0ded66ff942338f040788577c579c..fa240b4f500168d5ea274857a4373b32051ba03d 100644 (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);