Skip to content

Commit

Permalink
Fix shouldTruncateForConstrainedSize in ASTextNode2 (TextureGroup#1214)
Browse files Browse the repository at this point in the history
  • Loading branch information
maicki authored and mikezucc committed Nov 7, 2018
1 parent 3ec2f93 commit 268a49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ASTextNode2.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ - (BOOL)isTruncated

- (BOOL)shouldTruncateForConstrainedSize:(ASSizeRange)constrainedSize
{
return ASLockedSelf([self locked_textLayoutForSize:constrainedSize.max].truncatedLine == nil);
return ASLockedSelf([self locked_textLayoutForSize:constrainedSize.max].truncatedLine != nil);
}

- (ASTextLayout *)locked_textLayoutForSize:(CGSize)size
Expand Down

0 comments on commit 268a49f

Please sign in to comment.