From eb6a4098a0f2e9ae55e72ad960b3dfc134d177c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 11 Nov 2003 13:19:57 +0000 Subject: [PATCH] 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 --- src/html/winpars.cpp | 3 +++ 1 file changed, 3 insertions(+) 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())); } -- 2.50.0