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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user