changeset 4771:fab57f1dc2aa

7125657: [macosx] SpreadSheet demo has the broken display when clicking outside of the table Reviewed-by: anthony
author serb
date Tue, 14 Feb 2012 23:14:48 +0400
parents 791f738fe301
children d6c10291eeee
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	Tue Feb 14 20:18:18 2012 +0400
+++ b/src/macosx/classes/sun/lwawt/LWRepaintArea.java	Tue Feb 14 23:14:48 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());
         }
     }