Browse Source

REPORT-6133 [设计器]9.0富文本点开后取消富文本框,右侧的单元格元素中原本的编辑按钮异常

MoMeak 8 years ago
parent
commit
113f86e8ae
  1. 12
      designer/src/com/fr/design/mainframe/ElementCasePane.java

12
designer/src/com/fr/design/mainframe/ElementCasePane.java

@ -522,15 +522,15 @@ public abstract class ElementCasePane<T extends TemplateElementCase> 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();
}

Loading…
Cancel
Save