]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct vert alignment
authorRobert Roebling <robert@roebling.de>
Fri, 16 May 2008 21:03:35 +0000 (21:03 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 16 May 2008 21:03:35 +0000 (21:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datavgen.cpp

index c8e867396dd0f5e70dbaf0a61b7684593e00b34c..533d34a9bcca4e69b7f5453ca2a6eb06268b7112 100644 (file)
@@ -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;