Avoid using negative button height
This commit is contained in:
parent
f4ded62bc4
commit
1a3dc3fae6
@ -2193,7 +2193,7 @@ void wxPGMultiButton::Add( const wxBitmap& bitmap, int itemid )
|
|||||||
0;
|
0;
|
||||||
#endif
|
#endif
|
||||||
// Maximal heigth of the bitmap
|
// Maximal heigth of the bitmap
|
||||||
const int hMax = sz.y - margins;
|
const int hMax = wxMax(4, sz.y - margins);
|
||||||
|
|
||||||
wxBitmap scaledBmp;
|
wxBitmap scaledBmp;
|
||||||
// Scale bitmap down if necessary
|
// Scale bitmap down if necessary
|
||||||
|
Loading…
Reference in New Issue
Block a user