From 19a1d9eed1aacbe413c0cef7483c40b994cacff9 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 30 Nov 2007 16:52:04 +0000 Subject: [PATCH] adaptions for latest dc changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dcmemory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/dcmemory.cpp b/src/msw/dcmemory.cpp index 1ad90bbb83..6869e6f4e4 100644 --- a/src/msw/dcmemory.cpp +++ b/src/msw/dcmemory.cpp @@ -80,9 +80,9 @@ void wxMemoryDCImpl::Init() bool wxMemoryDCImpl::CreateCompatible(wxDC *dc) { - wxDCImpl *impl = dc->GetImpl(); + wxDCImpl *impl = dc ? dc->GetImpl() : NULL ; wxMSWDCImpl *msw_impl = wxDynamicCast( impl, wxMSWDCImpl ); - if (!msw_impl) + if ( dc && !msw_impl) { m_ok = false; return false; -- 2.45.2