fixed assert failure in wxStaticCast()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -326,7 +326,7 @@ wxHtmlImageCell::wxHtmlImageCell(wxWindow *window, wxFSFile *input,
|
||||
int w, int h, double scale, int align,
|
||||
const wxString& mapname) : wxHtmlCell()
|
||||
{
|
||||
m_window = wxStaticCast(window, wxScrolledWindow);
|
||||
m_window = window ? wxStaticCast(window, wxScrolledWindow) : NULL;
|
||||
m_scale = scale;
|
||||
m_bitmap = NULL;
|
||||
m_bmpW = w;
|
||||
|
Reference in New Issue
Block a user