]> git.saurik.com Git - wxWidgets.git/commitdiff
Always set background colour prior to any HTML rendering (this fixes assert in GTK2...
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 11 Nov 2003 13:19:57 +0000 (13:19 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 11 Nov 2003 13:19:57 +0000 (13:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/winpars.cpp

index e8cbb16fff1143f49121cef51b6c9ad673fca063..2e6fb654e792ccb9d73340262c9b6dffd005f7bf 100644 (file)
@@ -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()));
 }