X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5789150456227cff15ca6526ccca7ad41fa6930..f9b24f070c67c61d11a0032054e0a229d876f38d:/contrib/samples/canvas/test/test.cpp?ds=sidebyside diff --git a/contrib/samples/canvas/test/test.cpp b/contrib/samples/canvas/test/test.cpp index 410a3780bd..ac52ef0f9f 100644 --- a/contrib/samples/canvas/test/test.cpp +++ b/contrib/samples/canvas/test/test.cpp @@ -235,7 +235,7 @@ MyFrame::MyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, cons m_datatree->SetAdmin(&m_canvasadmin); wxBitmap bitmap( smile_xpm ); - wxImage image( bitmap ); + wxImage image( bitmap.ConvertToImage() ); // m_sm1 = new wxCanvasImage( image, 0,70,32,32 ); // m_datatree->Append( m_sm1 );