X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/193e19cfdfc0506d9ddc19b3532d340fd7421bae..430974f8c443dcbe1616a85238ead7db5fb88e43:/src/univ/renderer.cpp?ds=inline diff --git a/src/univ/renderer.cpp b/src/univ/renderer.cpp index 75539ac04c..13db530ddb 100644 --- a/src/univ/renderer.cpp +++ b/src/univ/renderer.cpp @@ -512,7 +512,7 @@ void wxControlRenderer::DrawBitmap(wxDC &dc, else if ( stretch & wxEXPAND ) { // stretch bitmap to fill the entire control - bmp = wxImage(bmp.ConvertToImage()).Scale(rect.width, rect.height); + bmp = wxBitmap(wxImage(bmp.ConvertToImage()).Scale(rect.width, rect.height)); } else // not stretched, not tiled {