[ASTextNode] Fix default ellipsis not showing for line breaks

This commit is contained in:
Aaron Schubert
2016-03-09 15:10:26 +00:00
parent de4e4db671
commit 71eb9582fb

View File

@@ -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;