]> git.saurik.com Git - wxWidgets.git/commitdiff
apply the table bg colour between the cells too (patch 1713170)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 11 May 2007 23:11:04 +0000 (23:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 11 May 2007 23:11:04 +0000 (23:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/html/m_tables.cpp

index b2627a29e71ccf59d7e4515304ed8f5ec029eb16..18d90526da07f05deb753e8661648bd7f9b7532f 100644 (file)
@@ -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:
 
index 54f62b5d108b3379a590a681674e694a054faba2..0209b50dede9c86fee90b85113e9d3428212c815 100644 (file)
@@ -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