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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user