comparison mac/dw.m @ 2375:6feefce31675

Mac: Only pass valid alignments to the setAlignment: method.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 18 Mar 2021 02:07:21 +0000
parents 2a7fed3d11f5
children 9fcc9ee25c4b
comparison
equal deleted inserted replaced
2374:2a7fed3d11f5 2375:6feefce31675
10070 } 10070 }
10071 } 10071 }
10072 else if([object isMemberOfClass:[NSTextView class]]) 10072 else if([object isMemberOfClass:[NSTextView class]])
10073 { 10073 {
10074 NSTextView *tv = handle; 10074 NSTextView *tv = handle;
10075 [tv setAlignment:(style & mask)]; 10075 [tv setAlignment:(style & mask & (NSTextAlignmentLeft|NSTextAlignmentCenter|NSTextAlignmentRight))];
10076 } 10076 }
10077 else if([object isMemberOfClass:[DWButton class]]) 10077 else if([object isMemberOfClass:[DWButton class]])
10078 { 10078 {
10079 DWButton *button = handle; 10079 DWButton *button = handle;
10080 10080