]> git.saurik.com Git - wxWidgets.git/commitdiff
using correct constant
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Jul 2012 16:30:24 +0000 (16:30 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Jul 2012 16:30:24 +0000 (16:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/stattext.mm

index 76497e7fca8ee72b92ff54d8554b52cffddf3126..591a97a4764a1e9fb6475d751d498891409745dd 100644 (file)
@@ -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];