|
@@ -198,11 +198,21 @@ void UIMLElement::layout(XML::Element& element,
|
|
|
pHeight = z.getInnenHeight();
|
|
|
|
|
|
for (auto i = element.getChilds(); i; i++)
|
|
|
- generalLayouter.layout(*i.val(),
|
|
|
- *generalLayouter.zZeichnungById(i->getAttributeValue("id")),
|
|
|
- pWidth,
|
|
|
- pHeight,
|
|
|
- generalLayouter);
|
|
|
+ {
|
|
|
+ Zeichnung* z = 0;
|
|
|
+ if (i->hasAttribute("id"))
|
|
|
+ {
|
|
|
+ z = generalLayouter.zZeichnungById(i->getAttributeValue("id"));
|
|
|
+ }
|
|
|
+ if (z)
|
|
|
+ {
|
|
|
+ generalLayouter.layout(*i.val(),
|
|
|
+ *generalLayouter.zZeichnungById(i->getAttributeValue("id")),
|
|
|
+ pWidth,
|
|
|
+ pHeight,
|
|
|
+ generalLayouter);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
UIMLContainer::UIMLContainer()
|