From 71eb9582fbd4d2a45ee4716748ccd64678fffbf9 Mon Sep 17 00:00:00 2001 From: Aaron Schubert Date: Wed, 9 Mar 2016 15:10:26 +0000 Subject: [PATCH] [ASTextNode] Fix default ellipsis not showing for line breaks --- AsyncDisplayKit/ASTextNode.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AsyncDisplayKit/ASTextNode.mm b/AsyncDisplayKit/ASTextNode.mm index 1af9559682..daa1a2aa20 100644 --- a/AsyncDisplayKit/ASTextNode.mm +++ b/AsyncDisplayKit/ASTextNode.mm @@ -1120,6 +1120,10 @@ static NSAttributedString *DefaultTruncationAttributedString() */ - (NSAttributedString *)_composedTruncationString { + //If we have neither return the default + if (!_additionalTruncationMessage && !_truncationAttributedString) { + return _composedTruncationString; + } // Short circuit if we only have one or the other. if (!_additionalTruncationMessage) { return _truncationAttributedString;