]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/dcclient.cpp
initial value set
[wxWidgets.git] / src / mac / dcclient.cpp
index eb9d6e467be9e033484a5089a8b8a46e2f262042..bc1a0827a4c0771d88473aa77cd1b3b0bcf34dbe 100644 (file)
@@ -85,6 +85,8 @@ wxClientDC::wxClientDC()
 wxClientDC::wxClientDC(wxWindow *window)
 {
        wxTopLevelWindowMac* rootwindow = window->MacGetTopLevelWindow() ;
+        if (!rootwindow)
+            return;
        WindowRef windowref = (WindowRef) rootwindow->MacGetWindowRef() ;
        wxPoint origin = window->GetClientAreaOrigin() ;
        wxSize size = window->GetClientSize() ;