From 97d0d45384fde8f8fc4187f2b06db0dafcf61387 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Tue, 29 May 2018 22:34:29 +0300 Subject: [PATCH] Fixed: lua:showDiv accessing already deleted objects --HG-- branch : develop --- code/nel/src/gui/group_html.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index de1064bd7..ef193b54e 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -4027,13 +4027,6 @@ namespace NLGUI void CGroupHTML::endParagraph() { - // Remove previous paragraph if empty - if (_Paragraph && (_Paragraph->getNumChildren() == 0)) - { - _Paragraph->getParent ()->delGroup(_Paragraph); - _Paragraph = NULL; - } - _Paragraph = NULL; paragraphChange (); @@ -4043,13 +4036,6 @@ namespace NLGUI void CGroupHTML::newParagraph(uint beginSpace) { - // Remove previous paragraph if empty - if (_Paragraph && (_Paragraph->getNumChildren() == 0)) - { - _Paragraph->getParent ()->delGroup(_Paragraph); - _Paragraph = NULL; - } - // Add a new paragraph CGroupParagraph *newParagraph = new CGroupParagraph(CViewBase::TCtorParam()); newParagraph->setResizeFromChildH(true); @@ -4889,13 +4875,6 @@ namespace NLGUI if (!group) return; - // Remove previous paragraph if empty - if (_Paragraph && (_Paragraph->getNumChildren() == 0)) - { - _Paragraph->getParent ()->delGroup(_Paragraph); - _Paragraph = NULL; - } - registerAnchor(group); if (!_DivName.empty())