From 5a00ab896b53ddc1c03e6ccdca1b74f6e0cc2847 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 12 Apr 2015 17:23:56 +0200 Subject: [PATCH] Accept wxALIGN_CENTRE_HORIZONTAL in wxMSW wxStaticText too. Previously it only handled wxALIGN_CENTRE, also the documentation switched to wxALIGN_CENTRE_HORIZONTAL in 72e88d8ea37de545ea095cd536d652d153f78da9 and preceding commits. See #16943. --- src/msw/stattext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index 1eb8b24acd..2574cfdb3b 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -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;