]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/datavgen.cpp
Fix compile error
[wxWidgets.git] / src / generic / datavgen.cpp
index 771dab7a474a134ba1116c31b775d4cac50796be..6e22f1e1cf8a2af97e65074ac0cc48d5109a142d 100644 (file)
@@ -1196,7 +1196,11 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
 
             item_rect.width = size.x;
             item_rect.height= size.y;
-            cell->Render( item_rect, &dc, 0 );
+
+            int state = 0;
+            if (item == m_currentRow)
+                state |= wxDATAVIEW_CELL_SELECTED;
+            cell->Render( item_rect, &dc, state );
         }
 
         cell_rect.x += cell_rect.width;