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
This commit is contained in:
Graham Dawes
2018-12-12 09:21:14 +00:00
committed by Vadim Zeitlin
parent 3a24beca62
commit 6c5c9e578b

View File

@@ -2566,6 +2566,7 @@ void wxCairoContext::Flush()
if ( m_qtSurface )
{
cairo_surface_flush(m_qtSurface);
m_qtPainter->drawImage( 0,0, *m_qtImage );
}
#endif
}