Revert code commented out by mistake in f06bfe37.

We need to restore HDC after Cairo operations.
This commit is contained in:
Artur Wieczorek
2016-06-23 22:14:07 +02:00
parent 9bee5e1e2b
commit 47791737db

View File

@@ -2264,8 +2264,7 @@ wxCairoContext::~wxCairoContext()
#ifdef __WXMSW__
if ( m_mswSurface )
{
// HDC hdc = cairo_win32_surface_get_dc(m_mswSurface);
HDC hdc = 0;
HDC hdc = cairo_win32_surface_get_dc(m_mswSurface);
cairo_surface_destroy(m_mswSurface);