Fix a compatibility issue with wxWidgets 3.1.5 and older

This commit is contained in:
jean-pierre charras 2022-11-26 08:31:30 +01:00
parent b3559ae12c
commit 709ad14e74
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ bool PG_CELL_RENDERER::Render( wxDC &aDC, const wxRect &aRect, const wxPropertyG
text = wxControl::Ellipsize( text, aDC, wxELLIPSIZE_MIDDLE, aRect.GetWidth() );
#if wxCHECK_VERSION( 3, 1, 0 )
#if wxCHECK_VERSION( 3, 1, 6 )
int imageWidth = PreDrawCell( aDC, aRect, aGrid, cell, preDrawFlags );
#else
int imageWidth = PreDrawCell( aDC, aRect, cell, preDrawFlags );