mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-17 22:33:44 +08:00
use attributedString.length instead of attributedString.string.length to check for empty strings
This commit is contained in:
@@ -173,7 +173,7 @@ static const CGFloat ASTextNodeRendererTextCapHeightPadding = 1.3;
|
||||
{
|
||||
ASDN::MutexLocker l(_textKitLock);
|
||||
|
||||
if (_attributedString.string.length == 0) {
|
||||
if (_attributedString.length == 0) {
|
||||
_calculatedSize = CGSizeZero;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user