Set/GetExpanderColumn() should use wxDataViewColumn, not unsigned int
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2321,7 +2321,7 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
||||
}
|
||||
|
||||
wxDataViewItem dataitem = node->GetItem();
|
||||
model->GetValue( value, dataitem, col->GetModelColumn());
|
||||
model->GetValue( value, dataitem, col->GetModelColumn());
|
||||
cell->SetValue( value );
|
||||
|
||||
// update the y offset
|
||||
@@ -2329,7 +2329,7 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
||||
|
||||
//Draw the expander here.
|
||||
int indent = node->GetIndentLevel();
|
||||
if( col->GetModelColumn() == GetOwner()->GetExpanderColumn() )
|
||||
if( col == GetOwner()->GetExpanderColumn() )
|
||||
{
|
||||
//Calculate the indent first
|
||||
indent = cell_rect.x + GetOwner()->GetIndent() * indent;
|
||||
|
Reference in New Issue
Block a user