mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Fixed with the new string size optimisation: the cache value was returned by reference and something in the CPButton path for image and text buttons changed it causing text to become misaligned. A defensive copy avoids this problem.
This commit is contained in:
committed by
Klaas Pieter Annema
parent
afcce49455
commit
367efe590e
@@ -60,7 +60,7 @@ var CPStringSizeWithFontInWidthCache = {};
|
||||
CPStringSizeWithFontInWidthCache[cacheKey] = size;
|
||||
}
|
||||
|
||||
return size;
|
||||
return CGSizeMakeCopy(size);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user