Browse Source

Merge pull request #1486 in BA/design from ~YAOH.WU/a_design_0811:release/9.0 to release/9.0

* commit '81730387ce060f1c1864e2ff450e0ec807f4bc0f':
  决策报表编辑报表块报错
superman 8 years ago
parent
commit
8e3037c155
  1. 9
      designer/src/com/fr/design/mainframe/ElementCasePane.java

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

@ -522,8 +522,13 @@ public abstract class ElementCasePane<T extends TemplateElementCase> extends Tar
* 因为这边判断selection是一个selection所以不会触发fireSelectionChanged
*/
public void setSelection(Selection selection) {
//旧选中内容编辑器释放模板对象
this.getCurrentEditor().release();
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())) {
this.selection = selection;

Loading…
Cancel
Save