]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_image.cpp
disable long filenames under DJGPP
[wxWidgets.git] / src / html / m_image.cpp
index 3f479801f6dab9a3a55c42741629946635fad0ae..4ab735e28ae4b6cf57a84c36e506b5bfdece81dc 100644 (file)
@@ -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;