|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|