mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 10:00:34 +02:00
LCL: Fix a crash when deleting a row in string grid. Issue #20549, patch from bald zhang
git-svn-id: trunk@33074 -
This commit is contained in:
parent
1c66c1c865
commit
193d7f84ac
@ -3441,7 +3441,7 @@ end;
|
||||
procedure TCustomGrid.ResetHotCell;
|
||||
begin
|
||||
with FGCache do begin
|
||||
if HotCellPainted then
|
||||
if HotCellPainted and (HotCell.x < ColCount) and (HotCell.y < RowCount) then
|
||||
InvalidateCell(HotCell.X, HotCell.Y);
|
||||
HotCell := Point(-1,-1);
|
||||
HotCellPainted := False;
|
||||
|
Loading…
Reference in New Issue
Block a user