From: Václav Slavík Date: Mon, 28 Feb 2011 21:23:00 +0000 (+0000) Subject: wxDataViewCtrl: Fully prepare renderer for Activate() call. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1852bf0db53e22235738dfea8aebe929c6c1390c 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 --- 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 ) );