fixed: implicit casting of NULL aWith argument to string in _sizeWithFont:inWidth:

This commit is contained in:
daboe01 committed 2016-12-02 22:08:48 +01:00
1 parent 80d1e9a9a7
commit 4959b84b4c
1 file changed
+3
+3
View File
@@ -81,6 +81,9 @@ CPStringSizeCachingEnabled = YES;
if (sizeCacheForFont === undefined)
sizeCacheForFont = CPStringSizeWithFontInWidthCache[self] = [];
if (!aWidth)
aWidth = '0';
var cssString = [aFont cssString],
cacheKey = cssString + '_' + aWidth;