From: Jaakko Salli Date: Sat, 15 Aug 2009 05:30:18 +0000 (+0000) Subject: Added workaround for VC6 internal compiler error (fixes #11104) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/832c54d43e54a41facb05b800662b5ec2ba04fcd Added workaround for VC6 internal compiler error (fixes #11104) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/widgets/bmpcombobox.cpp b/samples/widgets/bmpcombobox.cpp index fb29fa2f5c..b6d89b5dd1 100644 --- a/samples/widgets/bmpcombobox.cpp +++ b/samples/widgets/bmpcombobox.cpp @@ -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 );