+ else if ( ((unsigned int)index) != pos )
+ {
+ // Move pre-inserted empty bitmap into correct position
+ // (usually happens when combo box has wxCB_SORT style)
+ wxBitmap* bmp = static_cast<wxBitmap*>(m_bitmaps[pos]);
+ m_bitmaps.RemoveAt(pos);
+ m_bitmaps.Insert(bmp, index);
+ }