mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-13 10:13:50 +00:00
fixed: implicit casting of NULL aWith argument to string in _sizeWithFont:inWidth:
This commit is contained in:
1 parent
80d1e9a9a7
commit
4959b84b4c
1 file changed
+3
@@ -81,6 +81,9 @@ CPStringSizeCachingEnabled = YES;
|
||||
if (sizeCacheForFont === undefined)
|
||||
sizeCacheForFont = CPStringSizeWithFontInWidthCache[self] = [];
|
||||
|
||||
if (!aWidth)
|
||||
aWidth = '0';
|
||||
|
||||
var cssString = [aFont cssString],
|
||||
cacheKey = cssString + '_' + aWidth;
|
||||
|
||||
|
||||
Reference in new issue
Block a user