]> git.saurik.com Git - wxWidgets.git/commitdiff
Added workaround for VC6 internal compiler error (fixes #11104)
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 15 Aug 2009 05:30:18 +0000 (05:30 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 15 Aug 2009 05:30:18 +0000 (05:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/widgets/bmpcombobox.cpp

index fb29fa2f5c65e60b34ece2bda30cb4bd587f2b32..b6d89b5dd1f36393a2f198ef9d7e91fe37a2748a 100644 (file)
@@ -456,7 +456,8 @@ void BitmapComboBoxWidgetsPage::CreateCombo()
         for ( unsigned int n = 0; n < count; n++ )
         {
             items.Add(m_combobox->GetString(n));
-            bitmaps.Add(new wxBitmap(m_combobox->GetItemBitmap(n)));
+            wxBitmap bmp = m_combobox->GetItemBitmap(n);
+            bitmaps.Add(new wxBitmap(bmp));
         }
 
         m_sizerCombo->Detach( m_combobox );