7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-11 14:20:10 +00:00

Prefer wxFB sizes in bitmap buttons.

This commit is contained in:
Alex Shvartzkop 2024-05-27 00:05:25 +03:00
parent 2c73f74112
commit c401e3d24b

View File

@ -101,12 +101,10 @@ wxSize BITMAP_BUTTON::DoGetBestSize() const
void BITMAP_BUTTON::invalidateBestSize()
{
#ifdef __WXMAC__
// InvalidateBestSize() doesn't appear to work on Mac: DoGetBestSize() is never called.
SetMinSize( DoGetBestSize() );
#else
// Uncomment to override wxFB sizes
// SetMinSize( DoGetBestSize() );
InvalidateBestSize();
#endif
}