From 6d2190fcb4ba8c0a297a90ac233e88ad0c5cd13f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 30 Sep 2013 23:48:41 +0000 Subject: [PATCH] Store HTML "id" parameter value in wxHtmlCell. Pass on the value of the ID to the cell object when adding a new cell. Closes #15535. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/m_tables.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/html/m_tables.cpp b/src/html/m_tables.cpp index 3e47cb4ff9..cbd2723738 100644 --- a/src/html/m_tables.cpp +++ b/src/html/m_tables.cpp @@ -284,6 +284,13 @@ void wxHtmlTableCell::AddCell(wxHtmlContainerCell *cell, const wxHtmlTag& tag) /* scan for parameters: */ + // id: + wxString idvalue; + if (tag.GetParamAsString(wxT("ID"), &idvalue)) + { + cell->SetId(idvalue); + } + // width: { if (tag.HasParam(wxT("WIDTH")))