diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index cbd01a9343..b24b325cd0 100644 --- a/docs/latex/wx/image.tex +++ b/docs/latex/wx/image.tex @@ -791,7 +791,7 @@ Example: // rescale it to have size of 32*32 if ( bmp.GetWidth() != 32 || bmp.GetHeight() != 32 ) { - wxImage image(bmp); + wxImage image = bmp.ConvertToImage(); bmp = wxBitmap(image.Scale(32, 32)); // another possibility: