]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
don't use wxVector<wxDataFormat> from wx/clipbrd.h as wxDataFormat definition is...
[wxWidgets.git] / src / gtk / dcclient.cpp
index 71c77849b52b84672f01a738c487e4cb3843a66d..c7b1ce56c6cdff3d53a496ef6f9e6c9866d7fdee 100644 (file)
@@ -1,6 +1,6 @@
 /////////////////////////////////////////////////////////////////////////////
 // Name:        src/gtk/dcclient.cpp
-// Purpose:
+// Purpose:     wxWindowDCImpl implementation
 // Author:      Robert Roebling
 // RCS-ID:      $Id$
 // Copyright:   (c) 1998 Robert Roebling, Chris Breeze
@@ -276,7 +276,8 @@ wxWindowDCImpl::wxWindowDCImpl( wxDC *owner, wxWindow *window ) :
     if ( !widget )
     {
         window = window->GetParent();
-        widget = window->m_wxwindow;
+        if (window)
+            widget = window->m_wxwindow;
     }
 
     wxASSERT_MSG( widget, wxT("DC needs a widget") );