flush Cairo surface before converting to wxImage

(cherry picked from commit cd27b73237)
This commit is contained in:
Paul Cornett
2015-12-20 10:10:04 -08:00
parent 61a3e328ef
commit c2a38b2f92

View File

@@ -1549,6 +1549,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.") );