Browse Source

REPORT-45689 加上判空

feature/big-screen
hades 4 years ago
parent
commit
e99e80634d
  1. 4
      designer-form/src/main/java/com/fr/design/mainframe/JForm.java

4
designer-form/src/main/java/com/fr/design/mainframe/JForm.java

@ -626,9 +626,13 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm<F
refreshToolArea();
// 停止编辑 恢复浮层展示
TreePath[] treePaths = FormHierarchyTreePane.getInstance(formDesign).getComponentTree().getSelectedTreePath();
if (treePaths != null) {
for (TreePath path : treePaths) {
if (path != null) {
formDesign.stopEditing(path);
}
}
}
} else {
// 只在报表块里撤销是不需要修改外部form对象的, 因为编辑的是当前报表块.
// 修改了JForm的Target需要同步修改formDesign的Target.

Loading…
Cancel
Save