From 113f86e8ae80ce5e731ec6b02eb7fc74809b5a9a Mon Sep 17 00:00:00 2001 From: MoMeak Date: Fri, 15 Dec 2017 17:54:39 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-6133=20[=E8=AE=BE=E8=AE=A1=E5=99=A8]9.0?= =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E7=82=B9=E5=BC=80=E5=90=8E=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E5=AF=8C=E6=96=87=E6=9C=AC=E6=A1=86=EF=BC=8C=E5=8F=B3?= =?UTF-8?q?=E4=BE=A7=E7=9A=84=E5=8D=95=E5=85=83=E6=A0=BC=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E4=B8=AD=E5=8E=9F=E6=9C=AC=E7=9A=84=E7=BC=96=E8=BE=91=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/design/mainframe/ElementCasePane.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/designer/src/com/fr/design/mainframe/ElementCasePane.java b/designer/src/com/fr/design/mainframe/ElementCasePane.java index 46c363c380..547fdcf480 100644 --- a/designer/src/com/fr/design/mainframe/ElementCasePane.java +++ b/designer/src/com/fr/design/mainframe/ElementCasePane.java @@ -522,15 +522,15 @@ public abstract class ElementCasePane extends Tar * 因为这边判断selection是一个selection,所以不会触发fireSelectionChanged */ public void setSelection(Selection selection) { - try { - //旧选中内容编辑器释放模板对象 - this.getCurrentEditor().release(); - } catch (UnsupportedOperationException e) { - FRLogger.getLogger().info("Nothing to release"); - } if (!ComparatorUtils.equals(this.selection, selection) || !ComparatorUtils.equals(EastRegionContainerPane.getInstance().getCellAttrPane(), CellElementPropertyPane.getInstance())) { + try { + //旧选中内容编辑器释放模板对象 + this.getCurrentEditor().release(); + } catch (UnsupportedOperationException e) { + FRLogger.getLogger().info("Nothing to release"); + } this.selection = selection; fireSelectionChanged(); }