mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-11 20:04:46 +00:00
Fixed: Crash when div was following p element
This commit is contained in:
parent
ec079c71a7
commit
f57f90d455
1 changed files with 5 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue