From 1852bf0db53e22235738dfea8aebe929c6c1390c Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 28 Feb 2011 21:23:00 +0000 Subject: [PATCH] wxDataViewCtrl: Fully prepare renderer for Activate() call. Instead of just setting the value in the generic implementation, do full preparation (incl. attributes etc.) as everywhere else. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/datavgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index ca7dc0a9bd..3dc78c1e2c 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -3637,7 +3637,7 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event ) if ( wxDataViewCustomRenderer *custom = cell->WXGetAsCustom() ) { - cell->SetValue( value ); + cell->PrepareForItem(model, item, colIdx); wxRect cell_rect( xpos, GetLineStart( current ), col->GetWidth(), GetLineHeight( current ) ); -- 2.50.0