diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index fc4e6da3c6..1298a4999b 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -67,7 +67,7 @@ WXDWORD wxStaticText::MSWGetStyle(long style, WXDWORD *exstyle) const // // note that both wxALIGN_LEFT and SS_LEFT are equal to 0 so we shouldn't // test for them using & operator - if ( style & wxALIGN_CENTRE ) + if ( style & wxALIGN_CENTRE_HORIZONTAL ) msStyle |= SS_CENTER; else if ( style & wxALIGN_RIGHT ) msStyle |= SS_RIGHT;