jdk/src/share/classes/java/awt/Dialog.java
changeset 1183 80d6aafba03a
parent 2 90ce3da70b43
child 1964 934568dfe859
--- a/jdk/src/share/classes/java/awt/Dialog.java	Mon Jul 07 16:32:38 2008 +0400
+++ b/jdk/src/share/classes/java/awt/Dialog.java	Mon Jul 07 17:24:21 2008 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright 1995-2007 Sun Microsystems, Inc.  All Rights Reserved.
+ * Copyright 1995-2008 Sun Microsystems, Inc.  All Rights Reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -1327,8 +1327,8 @@
         // the insets of the Dialog. If we could, we'd call invalidate()
         // from the peer, but we need to guarantee that we're not holding
         // the Dialog lock when we call invalidate().
-        if (testvalid && valid) {
-            invalidate();
+        if (testvalid) {
+            invalidateIfValid();
         }
     }