From cd27b73237fcf0444f742ede9d45cdd12d35e718 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 20 Dec 2015 10:10:04 -0800 Subject: [PATCH] flush Cairo surface before converting to wxImage --- src/generic/graphicc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index 2e83b6b08b..02310e9242 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -1564,6 +1564,7 @@ wxImage wxCairoBitmapData::ConvertToImage() const } // Prepare for copying data. + cairo_surface_flush(m_surface); const wxUint32* src = (wxUint32*)cairo_image_surface_get_data(m_surface); wxCHECK_MSG( src, wxNullImage, wxS("Failed to get Cairo surface data.") );