Really fix the background colour used for the cells in wxHTML tables.
Respect "bgcolor" attributes of <td> tags, they were ignored since the changes of r72589 (see #14443). Closes #14909. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -821,7 +821,11 @@ TAG_HANDLER_BEGIN(TABLE, "TABLE,TR,TD,TH")
|
|||||||
new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
|
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 )
|
if ( isHeader )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user