From 8cfd3aeda9bc66a2cb818d85b25ebcbf513cac11 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Fri, 9 Sep 2016 20:31:53 +0200 Subject: [PATCH] fixed: sizing cache was not set up correctly --- AppKit/CPStringDrawing.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;