From dfeba1426a4d33a8b0e7027dad25fe1eab854f6b Mon Sep 17 00:00:00 2001 From: Nimetu Date: Fri, 14 Feb 2020 11:18:11 +0200 Subject: [PATCH] Fixed: Invalid table cell id --- code/nel/src/gui/group_html.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 0a6a1b2c8..d34c23a73 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -6793,9 +6793,11 @@ namespace NLGUI _Cells.back() = new CGroupCell(CViewBase::TCtorParam()); if (elm.hasNonEmptyAttribute("id")) - _Cells.back()->setId(getCurrentGroup()->getId() + ":TD" + elm.getAttribute("id")); + _Cells.back()->setId(table->getId() + ":" + elm.getAttribute("id")); else - _Cells.back()->setId(getCurrentGroup()->getId() + ":TD" + toString(getNextAutoIdSeq())); + _Cells.back()->setId(table->getId() + ":TD" + toString(getNextAutoIdSeq())); + // inner cell content + _Cells.back()->Group->setId(_Cells.back()->getId() + ":CELL"); if (_Style.checkStyle("background-repeat", "repeat")) _Cells.back()->setTextureTile(true);