From deef75ba8efbdfd1f9c4fe3ebfb3d3df72ffbec2 Mon Sep 17 00:00:00 2001 From: serb Date: Thu, 5 Apr 2012 20:38:24 +0400 Subject: [PATCH] 7125657: [macosx] SpreadSheet demo has the broken display when clicking outside of the table. Reviewed-by: alexp, anthony, art --- src/macosx/classes/sun/lwawt/LWRepaintArea.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/macosx/classes/sun/lwawt/LWRepaintArea.java b/src/macosx/classes/sun/lwawt/LWRepaintArea.java index e29009dcd..54cbd332d 100644 --- a/src/macosx/classes/sun/lwawt/LWRepaintArea.java +++ b/src/macosx/classes/sun/lwawt/LWRepaintArea.java @@ -39,12 +39,8 @@ final class LWRepaintArea extends RepaintArea { @Override protected void updateComponent(final Component comp, final Graphics g) { if (comp != null) { - final LWComponentPeer peer = (LWComponentPeer) comp.getPeer(); - if (peer != null) { - peer.paintPeer(g); - } super.updateComponent(comp, g); - flushBuffers(peer); + flushBuffers((LWComponentPeer) comp.getPeer()); } } -- GitLab