diff --git a/common/properties/pg_cell_renderer.cpp b/common/properties/pg_cell_renderer.cpp index 2fd4321c81..e0242d3f2d 100644 --- a/common/properties/pg_cell_renderer.cpp +++ b/common/properties/pg_cell_renderer.cpp @@ -42,7 +42,7 @@ bool PG_CELL_RENDERER::Render( wxDC &aDC, const wxRect &aRect, const wxPropertyG #else const wxPGCell* cellPtr = nullptr; aProperty->GetDisplayInfo( aColumn, aItem, aFlags, &text, &cellPtr ); - wxPGCell cell = *cellPtr; + const wxPGCell cell = *cellPtr; #endif text = wxControl::Ellipsize( text, aDC, wxELLIPSIZE_MIDDLE, aRect.GetWidth() );