From: Stefan Csomor Date: Wed, 4 Jul 2012 16:30:24 +0000 (+0000) Subject: using correct constant X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/af098dd344d6eeaa619d5dcdc45ee29bbb6a62a3 using correct constant git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/stattext.mm b/src/osx/cocoa/stattext.mm index 76497e7fca..591a97a476 100644 --- a/src/osx/cocoa/stattext.mm +++ b/src/osx/cocoa/stattext.mm @@ -102,7 +102,7 @@ private: NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init]; [paragraphStyle setLineBreakMode:m_lineBreak]; int style = GetWXPeer()->GetWindowStyleFlag(); - if (style & wxALIGN_CENTER) + if (style & wxALIGN_CENTER_HORIZONTAL) [paragraphStyle setAlignment: NSCenterTextAlignment]; else if (style & wxALIGN_RIGHT) [paragraphStyle setAlignment: NSRightTextAlignment];