From 9ffa5cf4f03c5d2059f279be1e9dc2f8c156f427 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Oct 2021 22:23:19 +0100 Subject: [PATCH] Use 16x16 default size for wxStaticBitmap in wxMotif too Nobody cares about Motif, but still use the same default size there as under the other platforms. --- src/motif/statbmp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/motif/statbmp.cpp b/src/motif/statbmp.cpp index aef55fb64b..485f4b818c 100644 --- a/src/motif/statbmp.cpp +++ b/src/motif/statbmp.cpp @@ -58,9 +58,9 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id, wxSize actualSize(size); // work around the cases where the bitmap is a wxNull(Icon/Bitmap) if (actualSize.x == -1) - actualSize.x = bitmap.IsOk() ? bitmap.GetWidth() : 1; + actualSize.x = bitmap.IsOk() ? bitmap.GetWidth() : 16; if (actualSize.y == -1) - actualSize.y = bitmap.IsOk() ? bitmap.GetHeight() : 1; + actualSize.y = bitmap.IsOk() ? bitmap.GetHeight() : 16; PostCreation(); DoSetBitmap();