Browse Source

REPORT-40606 【回归测试】表单模板如果未选择组件进行多次拖动,再切换模板就不行了,报错

feature/big-screen
pengda 4 years ago
parent
commit
84dc75af2c
  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

@ -619,8 +619,9 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
if (paraComponent != null && paraComponent.acceptType(XWParameterLayout.class)) {
return true;
} else {
if (this.getSelectionModel().getSelection().getSelectedCreator().getParent() != null
&& ((XLayoutContainer) this.getSelectionModel().getSelection().getSelectedCreator().getParent()).acceptType(XWAbsoluteLayout.class)) {
XCreator creator = this.getSelectionModel().getSelection().getSelectedCreator();
if (creator != null && creator.getParent() != null
&& ((XLayoutContainer) creator.getParent()).acceptType(XWAbsoluteLayout.class)) {
return true;
}
}

Loading…
Cancel
Save