Remove argument to wxButton::GetDefaultSize on wxGTK-3.0.x

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13181
This commit is contained in:
J RB
2022-12-16 22:40:37 +00:00
committed by Jon Evans
parent 059a134dbe
commit 5f0d26cbe2
2 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -29,6 +29,7 @@
#include <wx/menu.h>
#include <wx/renderer.h>
#include <wx/settings.h>
#include <wx/version.h>
#include <kiplatform/ui.h>
@@ -39,7 +40,11 @@ STD_BITMAP_BUTTON::STD_BITMAP_BUTTON( wxWindow* aParent, wxWindowID aId,
{
if( aSize == wxDefaultSize )
{
wxSize defaultSize = wxButton::GetDefaultSize( aParent );
#if wxCHECK_VERSION( 3, 1, 3 )
wxSize defaultSize = wxButton::GetDefaultSize( aParent );
#else
wxSize defaultSize = wxButton::GetDefaultSize();
#endif
SetMinSize( wxSize( defaultSize.GetWidth() + 1, defaultSize.GetHeight() + 1 ) );
}