Files
wxWidgets/src/common
Vadim Zeitlin 495e9b99cd Don't update wxBitmapComboBox bitmaps size if there are none
Correct the changes of 212d59cd80 (Fix determining the size of
wxBitmapComboBox bitmaps, 2022-05-25) and avoid changing m_usedImgSize
if we have no bitmaps at all, as it happens when adding the very first
bitmap: in this case, we set m_usedImgSize in our OnAddBitmap() before
actually adding the bitmap to m_bitmapbundles in DoInsertItems() called
from the base class Append() or Insert(), and wxMSW implementation calls
RecreateControl() from its overridden OnAddBitmap() which results in a
call to UpdateInternals() in between them.

All this is rather confusing and it would arguably be better to avoid
setting m_usedImgSize until the bitmap is actually added to
m_bitmapbundles, but this would require further changes, so for now just
avoid setting m_usedImgSize to (0, 0).
2022-06-01 15:40:17 +02:00
..
2021-10-03 17:07:44 +02:00
2022-05-01 03:11:06 +02:00
2022-05-03 22:56:55 +02:00
2020-12-31 12:49:06 +01:00
2021-10-03 17:07:44 +02:00
2021-10-03 17:07:44 +02:00
2015-09-23 00:52:30 +02:00
2022-04-14 00:40:36 +02:00
2021-10-03 17:07:44 +02:00
2021-10-03 17:07:44 +02:00
2021-10-03 17:07:44 +02:00
2021-10-03 17:07:44 +02:00
2020-10-16 01:58:13 +02:00
2021-10-03 17:07:44 +02:00
2021-10-03 17:07:44 +02:00
2021-03-17 09:44:48 -07:00
2022-05-27 15:26:26 +02:00
2020-12-23 17:03:05 +01:00
2020-10-16 01:58:13 +02:00