X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76a5e5d21ee1a6230d777ce0209b2df4c6075f0f..6d6da89ccb7a6aae5cfefe66147a7055ab0854d6:/src/mac/dcclient.cpp?ds=inline diff --git a/src/mac/dcclient.cpp b/src/mac/dcclient.cpp index eb9d6e467b..bc1a0827a4 100644 --- a/src/mac/dcclient.cpp +++ b/src/mac/dcclient.cpp @@ -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() ;