From 215d7bda99ef75f3f1f2ba7306e8f10824854b32 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Fri, 10 May 2019 08:27:25 +0300 Subject: [PATCH] Changed: Do not nest hr element inside group paragraph (hr already is a group) --HG-- branch : develop --- code/nel/src/gui/group_html.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index a4290efd1..5d8e8014e 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -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();