Fixed: Crash when div was following p element

--HG--
branch : develop
This commit is contained in:
Nimetu 2015-12-22 01:29:53 +02:00
parent 016390446d
commit f4d47f27aa

View file

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