From 6c5c9e578b7e6feb826f47ad7776ca84ee91973b Mon Sep 17 00:00:00 2001 From: Graham Dawes Date: Wed, 12 Dec 2018 09:21:14 +0000 Subject: [PATCH] wxCarioContext:Flush now draws back to the QT image wxCairoContext::Flush was flushing back to the internal image but this image wasn't drawn back to the QPainter until the wxCarioContext instance was destroyed. This fix ensure that after a call to Flush, anything drawn by Cario is drawn back to the QImage. Closes https://github.com/wxWidgets/wxWidgets/pull/1068 --- src/generic/graphicc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index ebebea96df..a610eabf64 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -2566,6 +2566,7 @@ void wxCairoContext::Flush() if ( m_qtSurface ) { cairo_surface_flush(m_qtSurface); + m_qtPainter->drawImage( 0,0, *m_qtImage ); } #endif }