Browse Source

REPORT-65772 模板权限编辑状态切换问题-打开一张cpt,进入模板权限编辑后,再打开一张frm时,frm也有模板权限编辑框了

bugfix/11.0
方磊 3 years ago
parent
commit
3dfe341cbb
  1. 5
      designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java

5
designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java

@ -1520,7 +1520,10 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
private DesignerBaseOperate getLayoutBaseOperate(){ private DesignerBaseOperate getLayoutBaseOperate(){
FormSelection selection = this.getSelectionModel().getSelection(); FormSelection selection = this.getSelectionModel().getSelection();
XCreator creator = selection.getSelectedCreator(); XCreator creator = selection.getSelectedCreator();
XLayoutContainer container = (XLayoutContainer) creator.getParent(); XLayoutContainer container = null;
if (creator != null) {
container = (XLayoutContainer) creator.getParent();
}
if (container == null) { if (container == null) {
return new DefaultDesignerBaseOperate(); return new DefaultDesignerBaseOperate();
} }

Loading…
Cancel
Save