adaptions for latest dc changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-11-30 16:52:04 +00:00
parent 0290aeac57
commit 19a1d9eed1

View File

@@ -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;