diff --git a/AppKit/CPStringDrawing.j b/AppKit/CPStringDrawing.j index 11e13f7cf..cbffafb85 100644 --- a/AppKit/CPStringDrawing.j +++ b/AppKit/CPStringDrawing.j @@ -89,7 +89,7 @@ CPStringSizeCachingEnabled = YES; var sizeCacheForFont = CPStringSizeWithFontInWidthCache[self]; if (sizeCacheForFont === undefined) - sizeCacheForFont = []; + sizeCacheForFont = CPStringSizeWithFontInWidthCache[self] = []; var cssString = [aFont cssString], cacheKey = cssString + '_' + aWidth;