Browse Source

无JIRA任务 修复初始化布局改动造成的npe问题

master
zhouping 8 years ago
parent
commit
d8022b8ad3
  1. 1
      designer_form/src/com/fr/design/mainframe/ComponentTree.java

1
designer_form/src/com/fr/design/mainframe/ComponentTree.java

@ -281,6 +281,7 @@ public class ComponentTree extends JTree {
} }
//绝对布局作为body的时候不显示自适应布局父层 //绝对布局作为body的时候不显示自适应布局父层
if (((XCreator) parent).acceptType(XWAbsoluteLayout.class) if (((XCreator) parent).acceptType(XWAbsoluteLayout.class)
&& (parent.getParent() != null)
&& ((XCreator)parent.getParent()).acceptType(XWFitLayout.class) && ((XCreator)parent.getParent()).acceptType(XWFitLayout.class)
&& ((XWAbsoluteLayout)parent).toData().isAbsoluteLayoutAsBody()){ && ((XWAbsoluteLayout)parent).toData().isAbsoluteLayoutAsBody()){
parent = parent.getParent().getParent(); parent = parent.getParent().getParent();

Loading…
Cancel
Save