X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff8af61ce07803bd86cafea25a06915dfed2ce36..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/html/m_tables.cpp diff --git a/src/html/m_tables.cpp b/src/html/m_tables.cpp index eb3f63db79..07f7b61658 100644 --- a/src/html/m_tables.cpp +++ b/src/html/m_tables.cpp @@ -17,6 +17,7 @@ #ifndef WX_PRECOMP #include "wx/wxcrtvararg.h" + #include "wx/brush.h" #endif #include "wx/html/forcelnk.h" @@ -820,7 +821,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 ) {