]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied [ 703017 ] TreeCtrl sample build fails when using generic control
authorJulian Smart <julian@anthemion.co.uk>
Wed, 2 Apr 2003 14:40:35 +0000 (14:40 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 2 Apr 2003 14:40:35 +0000 (14:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/treectrl/treetest.cpp

index 93b122679824fbcb83388981b6e201ee898fa7c4..8731c603462ed07cc9f9aa7d3dadf7c086a18598 100644 (file)
@@ -696,7 +696,7 @@ void MyTreeCtrl::CreateButtonsImageList(int size)
         }
         else
         {
-            images->Add(wxBitmap(icons[i].ConvertToImage().Rescale(size, size)));
+            images->Add(wxBitmap(wxBitmap(icons[i]).ConvertToImage().Rescale(size, size)));
         }
     }