From 5503c1c7a9a40111e2a4efc8cb888808379a00cb Mon Sep 17 00:00:00 2001 From: plough Date: Mon, 11 Dec 2017 14:34:55 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-4634=20=E7=BB=84=E4=BB=B6=E5=8F=A0?= =?UTF-8?q?=E5=8A=A0=E4=BD=93=E9=AA=8C=E4=BC=98=E5=8C=96=3D>4=E7=BC=A9?= =?UTF-8?q?=E7=95=A5=E5=9B=BE=3D>=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer_form/src/com/fr/design/mainframe/ComponentTree.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/designer_form/src/com/fr/design/mainframe/ComponentTree.java b/designer_form/src/com/fr/design/mainframe/ComponentTree.java index f5e8936d3f..6779dfa037 100644 --- a/designer_form/src/com/fr/design/mainframe/ComponentTree.java +++ b/designer_form/src/com/fr/design/mainframe/ComponentTree.java @@ -72,8 +72,9 @@ public class ComponentTree extends JTree { @Override public void removeAll() { - if (previewPane != null && previewPane.isVisible()) { + if (previewPane != null) { previewPane.setVisible(false); + previewPane.removeAll(); } super.removeAll(); }