]> git.saurik.com Git - wxWidgets.git/commitdiff
wxDataViewCtrl: Fully prepare renderer for Activate() call.
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 28 Feb 2011 21:23:00 +0000 (21:23 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 28 Feb 2011 21:23:00 +0000 (21:23 +0000)
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

index ca7dc0a9bd50219f3b9dd4b98f6505a7070f4f36..3dc78c1e2cf00d20a5b8925991fcba7ec610ef94 100644 (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 ) );