]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/renderer.cpp
Weekly catch up.
[wxWidgets.git] / src / univ / renderer.cpp
index 75539ac04cbc80eaa0b99d3b1be1dabc31d34c40..13db530ddb9e79476de7535b64d37812e1a1d76e 100644 (file)
@@ -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
     {