Fixed: Cleanup of table/cell border

--HG--
branch : html-improvements
hg/feature/html-improvements
Nimetu 5 years ago
parent d3c6098207
commit c6dc92e0ec

@ -41,6 +41,7 @@ namespace NLGUI
DECLARE_UI_CLASS( CGroupCell ) DECLARE_UI_CLASS( CGroupCell )
CGroupCell(const TCtorParam &param); CGroupCell(const TCtorParam &param);
~CGroupCell();
enum TAlign enum TAlign
{ {

@ -6614,8 +6614,6 @@ namespace NLGUI
uint32 borderWidth = 0; uint32 borderWidth = 0;
CRGBA borderColor = CRGBA::Transparent; CRGBA borderColor = CRGBA::Transparent;
// TODO: _Style->hasBorder() ??
table->Border = new CSSBorderRenderer();
if (elm.hasAttribute("border")) if (elm.hasAttribute("border"))
{ {
std::string s = elm.getAttribute("border"); std::string s = elm.getAttribute("border");

@ -73,6 +73,16 @@ namespace NLGUI
addGroup (Group); addGroup (Group);
} }
// ----------------------------------------------------------------------------
CGroupCell::~CGroupCell()
{
if (Border)
{
delete Border;
Border = NULL;
}
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
void CGroupCell::setEnclosedGroupDefaultParams() void CGroupCell::setEnclosedGroupDefaultParams()
{ {

Loading…
Cancel
Save