]> git.saurik.com Git - wxWidgets.git/commitdiff
Uses wxSystemSettings for colour when there is no window
authorRobin Dunn <robin@alldunn.com>
Sat, 22 Nov 2003 22:15:35 +0000 (22:15 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 22 Nov 2003 22:15:35 +0000 (22:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/winpars.cpp

index b2d0137a7496bf1685dd7dd9ba08203f7ca91ded..1c86a5b76d8d27afdf858b4d9852afa6f3de2042 100644 (file)
@@ -31,6 +31,7 @@
 #include "wx/html/htmlwin.h"
 #include "wx/fontmap.h"
 #include "wx/log.h"
+#include "wx/settings.h"
 
 
 //-----------------------------------------------------------------------------
@@ -188,7 +189,9 @@ void wxHtmlWinParser::InitParser(const wxString& source)
 
     m_Container->InsertCell(new wxHtmlColourCell(m_ActualColor));
     m_Container->InsertCell(
-            new wxHtmlColourCell(GetWindow() ? GetWindow()->GetBackgroundColour() : *wxWHITE,
+            new wxHtmlColourCell(GetWindow() ?
+                                     GetWindow()->GetBackgroundColour() :
+                                     wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW),
                                  wxHTML_CLR_BACKGROUND));
     m_Container->InsertCell(new wxHtmlFontCell(CreateCurrentFont()));
 }