]> git.saurik.com Git - wxWidgets.git/commitdiff
Store HTML "id" parameter value in wxHtmlCell.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Sep 2013 23:48:41 +0000 (23:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Sep 2013 23:48:41 +0000 (23:48 +0000)
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

index 3e47cb4ff93e0aba1484d30b47c13cc0835db63b..cbd27237381ea9aa94a139f623c307659bbda6b1 100644 (file)
@@ -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")))