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
This commit is contained in:
parent
322913cef3
commit
6be0b53f3d
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user