7183251: Netbeans editor renders text wrong on JDK 7u6 build 17
authorprr
Tue, 17 Jul 2012 16:35:49 -0700
changeset 13232 f4d1488bff92
parent 13231 2d9d08ab1cd9
child 13242 f0a376cc5e0b
7183251: Netbeans editor renders text wrong on JDK 7u6 build 17 Reviewed-by: igor, jgodinez
jdk/src/share/classes/sun/font/SunLayoutEngine.java
--- a/jdk/src/share/classes/sun/font/SunLayoutEngine.java	Mon Jul 16 16:49:29 2012 -0700
+++ b/jdk/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;
     }