From c92874460d075cc880d2f0a1ed36f56eefdf58cd Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 16 May 2008 21:03:35 +0000 Subject: [PATCH] Correct vert alignment git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/datavgen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index c8e867396d..533d34a9bc 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -2174,7 +2174,6 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) cell_rect.x = x_start; 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 ); wxDataViewRenderer *cell = col->GetRenderer(); @@ -2218,8 +2217,9 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) cell->SetHasAttr( ret ); } - // update the y offset + // update cell_rect cell_rect.y = GetLineStart( item ); + cell_rect.height = GetLineHeight( item ); // -1 is for the horizontal rules (?) //Draw the expander here. int indent = 0; -- 2.45.2