drawgrid: fix SetSelection that was causing exception, if too big range is given

git-svn-id: trunk@24609 -
This commit is contained in:
dmitry 2010-04-13 09:14:46 +00:00
parent 7766b8ea65
commit b55e278c6e

View File

@ -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;