fix for when gridlines are disabled. something still needs to be done
to crrectly redraw after the cell highlight moves. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5452,6 +5452,12 @@ void wxGrid::DrawCell( wxDC& dc, const wxGridCellCoords& coords )
|
||||
rect.width = GetColWidth(col) - 1;
|
||||
rect.height = GetRowHeight(row) - 1;
|
||||
|
||||
// if grid lines are disabled, then the area of the cell is a bit larger
|
||||
if (! m_gridLinesEnabled) {
|
||||
rect.width += 1;
|
||||
rect.height += 1;
|
||||
}
|
||||
|
||||
// if the editor is shown, we should use it and not the renderer
|
||||
// Note: However, only if it is really _shown_, i.e. not hidden!
|
||||
if ( isCurrent && IsCellEditControlShown() )
|
||||
|
Reference in New Issue
Block a user