Mercurial > hg > openjdk > icedtea > jdk7 > jdk
changeset 5510:84d5cdbe7bce
7183251: Netbeans editor renders text wrong on JDK 7u6 build
Reviewed-by: igor, jgodinez
author | prr |
---|---|
date | Fri, 20 Jul 2012 10:17:33 -0700 |
parents | bf5bf37108c1 |
children | bf941141d1bf |
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 Fri Jul 20 13:58:52 2012 +0400 +++ b/src/share/classes/sun/font/SunLayoutEngine.java Fri Jul 20 10:17:33 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; }