Don't redraw current cell when the grid is frozen
Don't update the grid appearance when inside a sequence of batch operations, it will be updated at the end of it anyhow and doing it in the middle only results in extra flicker.
This commit is contained in:
@@ -5759,13 +5759,16 @@ bool wxGrid::SetCurrentCell( const wxGridCellCoords& coords )
|
||||
|
||||
m_currentCellCoords = coords;
|
||||
|
||||
wxGridCellAttr *attr = GetCellAttr( coords );
|
||||
#if !defined(__WXMAC__)
|
||||
wxClientDC dc( currentGridWindow );
|
||||
PrepareDCFor(dc, currentGridWindow);
|
||||
DrawCellHighlight( dc, attr );
|
||||
if ( !GetBatchCount() )
|
||||
{
|
||||
wxGridCellAttr *attr = GetCellAttr( coords );
|
||||
wxClientDC dc( currentGridWindow );
|
||||
PrepareDCFor(dc, currentGridWindow);
|
||||
DrawCellHighlight( dc, attr );
|
||||
attr->DecRef();
|
||||
}
|
||||
#endif
|
||||
attr->DecRef();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user