use attributedString.length instead of attributedString.string.length to check for empty strings

This commit is contained in:
Sal
2015-08-16 18:24:20 -04:00
parent f06630c55a
commit 05cb1d734d

View File

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