From: Vadim Zeitlin Date: Fri, 11 May 2007 23:11:04 +0000 (+0000) Subject: apply the table bg colour between the cells too (patch 1713170) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/884898a79a6bd2e2f8b936781f670e98fbda7e9a?ds=inline apply the table bg colour between the cells too (patch 1713170) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/changes.txt b/docs/changes.txt index b2627a29e7..18d90526da 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -164,6 +164,7 @@ All (GUI): - Allow status bar children in XRC (Edmunt Pienkowski) - Fix memory leak in wxWizard when not using sizers for the page layout - Added wxListCtrl::SetItemPtrData() +- wxHTML: Apply table background colour between the cells too (Michael Hieke) wxMSW: diff --git a/src/html/m_tables.cpp b/src/html/m_tables.cpp index 54f62b5d10..0209b50ded 100644 --- a/src/html/m_tables.cpp +++ b/src/html/m_tables.cpp @@ -137,7 +137,11 @@ wxHtmlTableCell::wxHtmlTableCell(wxHtmlContainerCell *parent, const wxHtmlTag& t /* scan params: */ if (tag.HasParam(wxT("BGCOLOR"))) + { tag.GetParamAsColour(wxT("BGCOLOR"), &m_tBkg); + if (m_tBkg.Ok()) + SetBackgroundColour(m_tBkg); + } if (tag.HasParam(wxT("VALIGN"))) m_tValign = tag.GetParam(wxT("VALIGN")); else