using correct constant
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -102,7 +102,7 @@ private:
|
|||||||
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
|
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
|
||||||
[paragraphStyle setLineBreakMode:m_lineBreak];
|
[paragraphStyle setLineBreakMode:m_lineBreak];
|
||||||
int style = GetWXPeer()->GetWindowStyleFlag();
|
int style = GetWXPeer()->GetWindowStyleFlag();
|
||||||
if (style & wxALIGN_CENTER)
|
if (style & wxALIGN_CENTER_HORIZONTAL)
|
||||||
[paragraphStyle setAlignment: NSCenterTextAlignment];
|
[paragraphStyle setAlignment: NSCenterTextAlignment];
|
||||||
else if (style & wxALIGN_RIGHT)
|
else if (style & wxALIGN_RIGHT)
|
||||||
[paragraphStyle setAlignment: NSRightTextAlignment];
|
[paragraphStyle setAlignment: NSRightTextAlignment];
|
||||||
|
Reference in New Issue
Block a user