changeset 5605:ab0b2720a756

7183251: Netbeans editor renders text wrong on JDK 7u6 build 17 Reviewed-by: igor, jgodinez
author prr
date Tue, 17 Jul 2012 16:35:49 -0700
parents 9f21c95bfbc1
children 86ca943c120b
files src/share/classes/sun/font/SunLayoutEngine.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/font/SunLayoutEngine.java	Mon Jul 16 16:49:29 2012 -0700
+++ b/src/share/classes/sun/font/SunLayoutEngine.java	Tue Jul 17 16:35:49 2012 -0700
@@ -137,8 +137,9 @@
 
         LayoutEngine e = (LayoutEngine)cache.get(key);
         if (e == null) {
-            e = new SunLayoutEngine(key.copy());
-            cache.put(key, e);
+            LayoutEngineKey copy = key.copy();
+            e = new SunLayoutEngine(copy);
+            cache.put(copy, e);
         }
         return e;
     }