Removed spurious wxCHECK which forgot about the possibility of ~wxScreenDC...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -200,10 +200,15 @@ wxDC::~wxDC()
|
|||||||
}
|
}
|
||||||
else // we don't own our HDC
|
else // we don't own our HDC
|
||||||
{
|
{
|
||||||
// this is not supposed to happen as we can't free the HDC then
|
if (m_canvas)
|
||||||
wxCHECK_RET( m_canvas, _T("no canvas in not owning ~wxDC?") );
|
{
|
||||||
|
::ReleaseDC(GetHwndOf(m_canvas), GetHdc());
|
||||||
::ReleaseDC(GetHwndOf(m_canvas), GetHdc());
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Must have been a wxScreenDC
|
||||||
|
::ReleaseDC((HWND) NULL, GetHdc());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user