From 6be0b53f3d08680cf2e719e05d9756f3442c166c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 20 Nov 2003 23:12:50 +0000 Subject: [PATCH] When used from wxHtmlListBox it's possible for GetWindow to return NULL. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/winpars.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index 2e6fb654e7..b2d0137a74 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -188,7 +188,7 @@ void wxHtmlWinParser::InitParser(const wxString& source) m_Container->InsertCell(new wxHtmlColourCell(m_ActualColor)); m_Container->InsertCell( - new wxHtmlColourCell(GetWindow()->GetBackgroundColour(), + new wxHtmlColourCell(GetWindow() ? GetWindow()->GetBackgroundColour() : *wxWHITE, wxHTML_CLR_BACKGROUND)); m_Container->InsertCell(new wxHtmlFontCell(CreateCurrentFont())); } -- 2.45.2