Changed: Do not nest hr element inside group paragraph (hr already is a group)

--HG--
branch : develop
This commit is contained in:
Nimetu 2019-05-10 08:27:25 +03:00
parent 1aeb8a3873
commit 215d7bda99

View file

@ -5764,7 +5764,7 @@ namespace NLGUI
// ***************************************************************************
void CGroupHTML::htmlHR(const CHtmlElement &elm)
{
newParagraph(0);
endParagraph();
CInterfaceGroup *sep = CWidgetManager::getInstance()->getParser()->createGroupInstance("html_hr", "", NULL, 0);
if (sep)
@ -5787,7 +5787,7 @@ namespace NLGUI
}
renderPseudoElement(":before", elm);
getParagraph()->addChild(sep);
addHtmlGroup(sep, 0);
renderPseudoElement(":after", elm);
endParagraph();