fix dom protection

This commit is contained in:
daboe01 committed 2015-07-04 19:24:52 +02:00
1 parent 1a8a9f0047
commit af7de73f5c
1 file changed
+2 -2
+2 -2
View File
@@ -114,11 +114,11 @@ CPStringSizeCachingEnabled = YES;
size = CGSizeMake(CPStringSizeMeasuringContext.measureText(self).width, fontHeight);
}
CPStringSizeWithFontInWidthCache[self][cacheKey] = size;
#else
size = CGSizeMake(0, 0);
#endif
CPStringSizeWithFontInWidthCache[self][cacheKey] = size;
return CGSizeMakeCopy(size);
}