|
|
@ -1190,7 +1190,12 @@ namespace NLGUI
|
|
|
|
if (haveParentDiv)
|
|
|
|
if (haveParentDiv)
|
|
|
|
parentId = getDiv()->getId();
|
|
|
|
parentId = getDiv()->getId();
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!_Paragraph)
|
|
|
|
|
|
|
|
newParagraph (0);
|
|
|
|
|
|
|
|
|
|
|
|
parentId = _Paragraph->getId();
|
|
|
|
parentId = _Paragraph->getId();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CInterfaceGroup *inst = CWidgetManager::getInstance()->getParser()->createGroupInstance(templateName, parentId+":"+id, tmplParams);
|
|
|
|
CInterfaceGroup *inst = CWidgetManager::getInstance()->getParser()->createGroupInstance(templateName, parentId+":"+id, tmplParams);
|
|
|
|
if (inst)
|
|
|
|
if (inst)
|
|
|
@ -1210,12 +1215,6 @@ namespace NLGUI
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!_Paragraph)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
newParagraph (0);
|
|
|
|
|
|
|
|
paragraphChange ();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getParagraph()->addChild(inst);
|
|
|
|
getParagraph()->addChild(inst);
|
|
|
|
paragraphChange();
|
|
|
|
paragraphChange();
|
|
|
|
}
|
|
|
|
}
|
|
|
|