Avoid using negative button height

This commit is contained in:
Artur Wieczorek 2020-04-12 17:26:26 +02:00
parent f4ded62bc4
commit 1a3dc3fae6

View File

@ -2193,7 +2193,7 @@ void wxPGMultiButton::Add( const wxBitmap& bitmap, int itemid )
0;
#endif
// Maximal heigth of the bitmap
const int hMax = sz.y - margins;
const int hMax = wxMax(4, sz.y - margins);
wxBitmap scaledBmp;
// Scale bitmap down if necessary