Browse Source

Merge pull request #6616 in DESIGN/design from final/10.0 to release/10.0

* commit '9b5f85e4f1be0c9919bc464fa700329a23dfa531':
  REPORT-62437 安装大数据集导出excel插件后,远程和本地互相切换时保存失败问题
zheng-1641779399395
superman 3 years ago
parent
commit
0f7a2beb35
  1. 7
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

7
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -406,8 +406,11 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
}
private void setTargetByFile(FILE file) {
this.template = JTemplateFactory.asIOFile(file, this.suffix());
setTarget(this.template);
T newTemplate = JTemplateFactory.asIOFile(file, this.suffix());
if (newTemplate != null) {
this.template = newTemplate;
setTarget(this.template);
}
}
private void addCenterPane() {

Loading…
Cancel
Save