From a4e2b27676efa95954525a3e0f2f64d0b0375fbd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 4 Jan 2002 17:27:15 +0000 Subject: [PATCH] fixed assert failure in wxStaticCast() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/m_image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp index 3f479801f6..4ab735e28a 100644 --- a/src/html/m_image.cpp +++ b/src/html/m_image.cpp @@ -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; -- 2.45.2