Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 95bf8bb

Browse files
Yue-Wang-Googleappleguy
authored andcommitted
Fix ASTextNode truncation string (#1992)
Initial PR to open source our internal ASDK patch list from Google Inc. :)
1 parent f5b3a28 commit 95bf8bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

AsyncDisplayKit/ASTextNode.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,8 +1278,8 @@ - (NSAttributedString *)_prepareTruncationStringForDrawing:(NSAttributedString *
12781278
NSMutableAttributedString *truncationMutableString = [truncationString mutableCopy];
12791279
// Grab the attributes from the full string
12801280
if (_attributedText.length > 0) {
1281-
NSAttributedString *originalString = _truncationAttributedText;
1282-
NSInteger originalStringLength = _truncationAttributedText.length;
1281+
NSAttributedString *originalString = _attributedText;
1282+
NSInteger originalStringLength = _attributedText.length;
12831283
// Add any of the original string's attributes to the truncation string,
12841284
// but don't overwrite any of the truncation string's attributes
12851285
NSDictionary *originalStringAttributes = [originalString attributesAtIndex:originalStringLength-1 effectiveRange:NULL];

0 commit comments

Comments
 (0)