7183251: Netbeans editor renders text wrong on JDK 7u6 build 17

Reviewed-by: igor, jgodinez
This commit is contained in:
Phil Race 2012-07-17 16:35:49 -07:00
parent 7222ea9529
commit 062fbe8cad

View File

@ -137,8 +137,9 @@ public final class SunLayoutEngine implements LayoutEngine, LayoutEngineFactory
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;
}