]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/printps.cpp
When used from wxHtmlListBox it's possible for GetWindow to return NULL.
[wxWidgets.git] / src / generic / printps.cpp
index 615fa7e615a61ea1b678b4553366b1dbb7789e1d..aea9ddf5bc1fb1c5a7bff5218852b62ba87326d5 100644 (file)
@@ -135,7 +135,7 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
         m_printDialogData.SetMaxPage(9999);
 
     // Create a suitable device context
-    wxDC *dc = (wxDC *) NULL;
+    wxDC *dc;
     if (prompt)
     {
         dc = PrintDialog(parent);