From 1a3dc3fae6eba439a40c3358a927b2d8db2f0233 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 12 Apr 2020 17:26:26 +0200 Subject: [PATCH] Avoid using negative button height --- src/propgrid/editors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index fc1d9cc6d7..fa88b88732 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -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