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
This commit is contained in:
Václav Slavík 2011-02-28 21:23:00 +00:00
parent e878c3477b
commit 1852bf0db5

View File

@ -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 ) );