diff --git a/src/html/m_tables.cpp b/src/html/m_tables.cpp
index 49c61dfe5b..07f7b61658 100644
--- a/src/html/m_tables.cpp
+++ b/src/html/m_tables.cpp
@@ -821,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 )
{