Accept wxALIGN_CENTRE_HORIZONTAL in wxMSW wxStaticText too.

Previously it only handled wxALIGN_CENTRE, also the documentation switched to
wxALIGN_CENTRE_HORIZONTAL in 72e88d8ea3 and
preceding commits.

See #16943.
This commit is contained in:
Vadim Zeitlin
2015-04-12 17:23:56 +02:00
parent 6dba08aead
commit 5a00ab896b

View File

@@ -68,7 +68,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;