X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e6f074b45b065b6745caecd25324615bc77ab3b..f0776dc43fc145ee8e0d759d2f1b387724e4f17d:/src/generic/graphicc.cpp diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index c8f2506cc4..312cd84635 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -2346,14 +2346,7 @@ wxGraphicsContext * wxCairoRenderer::CreateContext( const wxMemoryDC& dc) wxGraphicsContext * wxCairoRenderer::CreateContext( const wxPrinterDC& dc) { ENSURE_LOADED_OR_RETURN(NULL); -#ifdef __WXGTK20__ - const wxDCImpl *impl = dc.GetImpl(); - cairo_t* context = (cairo_t*) impl->GetCairoContext(); - if (context) - return new wxCairoContext(this,dc); - else -#endif - return new wxCairoContext(this,dc); + return new wxCairoContext(this, dc); } #ifdef __WXMSW__