Correct vert alignment

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-05-16 21:03:35 +00:00
parent ba5f54e64f
commit c92874460d

View File

@@ -2174,7 +2174,6 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
cell_rect.x = x_start; cell_rect.x = x_start;
for (unsigned int i = col_start; i < col_last; i++) for (unsigned int i = col_start; i < col_last; i++)
{ {
cell_rect.height = GetLineHeight( i ); // -1 is for the horizontal rules (?)
wxDataViewColumn *col = GetOwner()->GetColumn( i ); wxDataViewColumn *col = GetOwner()->GetColumn( i );
wxDataViewRenderer *cell = col->GetRenderer(); wxDataViewRenderer *cell = col->GetRenderer();
@@ -2218,8 +2217,9 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
cell->SetHasAttr( ret ); cell->SetHasAttr( ret );
} }
// update the y offset // update cell_rect
cell_rect.y = GetLineStart( item ); cell_rect.y = GetLineStart( item );
cell_rect.height = GetLineHeight( item ); // -1 is for the horizontal rules (?)
//Draw the expander here. //Draw the expander here.
int indent = 0; int indent = 0;