mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 05:59:28 +02:00
drawgrid: fix SetSelection that was causing exception, if too big range is given
git-svn-id: trunk@24609 -
This commit is contained in:
parent
7766b8ea65
commit
b55e278c6e
@ -4542,6 +4542,8 @@ begin
|
||||
CancelSelection
|
||||
else begin
|
||||
fRange:=NormalizarRect(aValue);
|
||||
if fRange.Right>=ColCount then fRange.Right:=ColCount-1;
|
||||
if fRange.Bottom>=RowCount then fRange.Bottom:=RowCount-1;
|
||||
Invalidate;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user