X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a7b1d6eafd39d994832c1c48461908077dc5ed4..ccdcde00d9ae27ca20ff6c3c9495918a0ec725aa:/src/generic/dcpsg.cpp?ds=sidebyside diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index fd36a5b783..a81806e5ac 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -881,7 +881,7 @@ void wxPostScriptDC::DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y, if (!bitmap.Ok()) return; - wxImage image( bitmap ); + wxImage image = bitmap.ConvertToImage(); if (!image.Ok()) return;