X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/929bb9d2b3ce9d523d211ea776344e1816c720db..5bd6ad08a778f230f2d9ef5d390be68b13d3a0eb:/src/html/m_tables.cpp?ds=sidebyside diff --git a/src/html/m_tables.cpp b/src/html/m_tables.cpp index 49c61dfe5b..3e47cb4ff9 100644 --- a/src/html/m_tables.cpp +++ b/src/html/m_tables.cpp @@ -2,7 +2,6 @@ // Name: src/html/m_tables.cpp // Purpose: wxHtml module for tables // Author: Vaclav Slavik -// RCS-ID: $Id$ // Copyright: (c) 1999 Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -821,7 +820,11 @@ TAG_HANDLER_BEGIN(TABLE, "TABLE,TR,TD,TH") new wxHtmlFontCell(m_WParser->CreateCurrentFont())); } - CallParseInnerWithBg(tag, m_Table->GetRowDefaultBackgroundColour()); + wxColour bgCol; + if ( !tag.GetParamAsColour(wxT("BGCOLOR"), &bgCol) ) + bgCol = m_Table->GetRowDefaultBackgroundColour(); + + CallParseInnerWithBg(tag, bgCol); if ( isHeader ) {