From b4c10903ff41a5fad331c3f589d7aba98fe218d6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 11 May 2007 23:12:33 +0000 Subject: [PATCH] apply the table bg colour between the cells too (patch 1713170) [backport from HEAD] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + src/html/m_tables.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 0a44f4cced..3ca0a37204 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -110,6 +110,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 7f965d7e0c..6da4e08ec2 100644 --- a/src/html/m_tables.cpp +++ b/src/html/m_tables.cpp @@ -136,7 +136,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