changeset 5240:dc0d4cf71dfb

7125657: [macosx] SpreadSheet demo has the broken display when clicking outside of the table. Reviewed-by: alexp, anthony, art
author serb
date Thu, 05 Apr 2012 20:38:24 +0400
parents 004d53e61c3b
children 32d2d5c8c8b9
files src/macosx/classes/sun/lwawt/LWRepaintArea.java
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/sun/lwawt/LWRepaintArea.java	Thu Apr 05 19:43:56 2012 +0400
+++ b/src/macosx/classes/sun/lwawt/LWRepaintArea.java	Thu Apr 05 20:38:24 2012 +0400
@@ -39,12 +39,8 @@
     @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());
         }
     }