diff --git a/samples/widgets/bmpcombobox.cpp b/samples/widgets/bmpcombobox.cpp index 8c00519826..f73feb8978 100644 --- a/samples/widgets/bmpcombobox.cpp +++ b/samples/widgets/bmpcombobox.cpp @@ -694,6 +694,8 @@ void BitmapComboBoxWidgetsPage::LoadWidgetImages( wxArrayString* strings, wxImag // Get size of existing images in list wxSize foundSize = m_combobox->GetBitmapSize(); + if ( !foundSize.IsFullySpecified() ) + foundSize = images->GetSize(); for ( i=0; isize(); i++ ) {