mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Avoid accessing grid data array elements over its bounds in Datagrid.OnBeforeCellPaint, while painting NULL cell background. Can happen as RootNodeCount is set asynchronously to scrolling. Fixes issue #1497 and friends.
This commit is contained in:
@@ -7411,6 +7411,7 @@ begin
|
||||
Exit;
|
||||
gr := GridResult(Sender);
|
||||
EnsureChunkLoaded(Sender, Node);
|
||||
if Node.Index >= Cardinal(Length(gr.Rows)) then Exit;
|
||||
if (Node = Sender.FocusedNode) and (Column = Sender.FocusedColumn) then begin
|
||||
if not Sender.IsEditing then begin
|
||||
// Editors may not cover the whole cell rectangle, so any colored area looks broken then
|
||||
|
||||
Reference in New Issue
Block a user