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