From 59de0e7a4a25ac2d2ca85c14c87283f473ce8fa9 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Mon, 23 May 2016 17:14:13 +0200 Subject: [PATCH] fixed: text sizing did not work for javascript function names --- AppKit/CPStringDrawing.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPStringDrawing.j b/AppKit/CPStringDrawing.j index 359f0a5ac..ea6ef57da 100644 --- a/AppKit/CPStringDrawing.j +++ b/AppKit/CPStringDrawing.j @@ -94,7 +94,7 @@ CPStringSizeCachingEnabled = YES; size = CPStringSizeWithFontInWidthCache[self][cacheKey]; - if (size !== undefined) + if (CPStringSizeWithFontInWidthCache[self].hasOwnProperty(cacheKey) && size !== undefined) return CGSizeMakeCopy(size); if (!CPStringSizeDidTestCanvasSizingValid)