From 13f8fd77ac7de7f281fd7da18d8203f6d59fda67 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Wed, 24 Jan 2024 19:58:12 +0300 Subject: [PATCH] wx 3.3 compatibility. --- common/tool/action_toolbar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/tool/action_toolbar.cpp b/common/tool/action_toolbar.cpp index 46fd9da919..5e6e2e047f 100644 --- a/common/tool/action_toolbar.cpp +++ b/common/tool/action_toolbar.cpp @@ -771,6 +771,9 @@ void ACTION_TOOLBAR::OnCustomRender(wxDC& aDc, const wxAuiToolBarItem& aItem, co bool ACTION_TOOLBAR::KiRealize() { +#if wxCHECK_VERSION( 3, 3, 0 ) + return Realize(); +#else wxClientDC dc( this ); if( !dc.IsOk() ) @@ -819,6 +822,7 @@ bool ACTION_TOOLBAR::KiRealize() Refresh( false ); return retval; +#endif }