From: Václav Slavík Date: Tue, 11 Nov 2003 13:19:57 +0000 (+0000) Subject: Always set background colour prior to any HTML rendering (this fixes assert in GTK2... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eb6a4098a0f2e9ae55e72ad960b3dfc134d177c9 Always set background colour prior to any HTML rendering (this fixes assert in GTK2 build because BgColor of wxHtmlRenderingState was unset=invalid) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index e8cbb16fff..2e6fb654e7 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -187,6 +187,9 @@ void wxHtmlWinParser::InitParser(const wxString& source) #endif m_Container->InsertCell(new wxHtmlColourCell(m_ActualColor)); + m_Container->InsertCell( + new wxHtmlColourCell(GetWindow()->GetBackgroundColour(), + wxHTML_CLR_BACKGROUND)); m_Container->InsertCell(new wxHtmlFontCell(CreateCurrentFont())); }