]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/canvas/test/test.cpp
Added demo of using a sizer in a wxScrolledWindow
[wxWidgets.git] / contrib / samples / canvas / test / test.cpp
index 410a3780bdcc24c12e427a04b38d5d4f14b471e1..ac52ef0f9f050c42c3760a8d6ca4c85609533c9b 100644 (file)
@@ -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 );