Fixed: lua:showDiv accessing already deleted objects
--HG-- branch : develop
This commit is contained in:
parent
e2617bfe9b
commit
97d0d45384
1 changed files with 0 additions and 21 deletions
|
@ -4027,13 +4027,6 @@ namespace NLGUI
|
||||||
|
|
||||||
void CGroupHTML::endParagraph()
|
void CGroupHTML::endParagraph()
|
||||||
{
|
{
|
||||||
// Remove previous paragraph if empty
|
|
||||||
if (_Paragraph && (_Paragraph->getNumChildren() == 0))
|
|
||||||
{
|
|
||||||
_Paragraph->getParent ()->delGroup(_Paragraph);
|
|
||||||
_Paragraph = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
_Paragraph = NULL;
|
_Paragraph = NULL;
|
||||||
|
|
||||||
paragraphChange ();
|
paragraphChange ();
|
||||||
|
@ -4043,13 +4036,6 @@ namespace NLGUI
|
||||||
|
|
||||||
void CGroupHTML::newParagraph(uint beginSpace)
|
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
|
// Add a new paragraph
|
||||||
CGroupParagraph *newParagraph = new CGroupParagraph(CViewBase::TCtorParam());
|
CGroupParagraph *newParagraph = new CGroupParagraph(CViewBase::TCtorParam());
|
||||||
newParagraph->setResizeFromChildH(true);
|
newParagraph->setResizeFromChildH(true);
|
||||||
|
@ -4889,13 +4875,6 @@ namespace NLGUI
|
||||||
if (!group)
|
if (!group)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Remove previous paragraph if empty
|
|
||||||
if (_Paragraph && (_Paragraph->getNumChildren() == 0))
|
|
||||||
{
|
|
||||||
_Paragraph->getParent ()->delGroup(_Paragraph);
|
|
||||||
_Paragraph = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
registerAnchor(group);
|
registerAnchor(group);
|
||||||
|
|
||||||
if (!_DivName.empty())
|
if (!_DivName.empty())
|
||||||
|
|
Loading…
Reference in a new issue