Properties: More API differences in wx3.0

This commit is contained in:
Jon Evans 2022-11-25 15:24:38 -05:00
parent 773f444636
commit 778d01c46b
1 changed files with 6 additions and 1 deletions

View File

@ -47,7 +47,12 @@ 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 )
int imageWidth = PreDrawCell( aDC, aRect, aGrid, cell, preDrawFlags );
#else
int imageWidth = PreDrawCell( aDC, aRect, cell, preDrawFlags );
#endif
int imageOffset = aProperty->GetImageOffset( imageWidth );
DrawEditorValue( aDC, aRect, imageOffset, text, aProperty, nullptr );