]> git.saurik.com Git - wxWidgets.git/commitdiff
Attempt to fix Borland compilo
authorJulian Smart <julian@anthemion.co.uk>
Thu, 27 Nov 2003 12:13:20 +0000 (12:13 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 27 Nov 2003 12:13:20 +0000 (12:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/winpars.cpp

index 1c86a5b76d8d27afdf858b4d9852afa6f3de2042..0709e7751890e91f071ef9132922793563d4d4aa 100644 (file)
@@ -188,10 +188,11 @@ void wxHtmlWinParser::InitParser(const wxString& source)
 #endif
 
     m_Container->InsertCell(new wxHtmlColourCell(m_ActualColor));
+    wxColour windowColour = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW) ;
     m_Container->InsertCell(
             new wxHtmlColourCell(GetWindow() ?
                                      GetWindow()->GetBackgroundColour() :
-                                     wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW),
+                                     windowColour,
                                  wxHTML_CLR_BACKGROUND));
     m_Container->InsertCell(new wxHtmlFontCell(CreateCurrentFont()));
 }