wx 3.3 compatibility.

This commit is contained in:
Alex Shvartzkop 2024-01-24 19:58:12 +03:00
parent b8b4ea1a45
commit 13f8fd77ac
1 changed files with 4 additions and 0 deletions

View File

@ -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
}