LCL, check for col/row index (fixes ocassional Index out of range exception)

git-svn-id: trunk@46353 -
This commit is contained in:
jesus 2014-09-29 20:33:29 +00:00
parent b0ae445fd6
commit 53a0681e2a

View File

@ -5575,9 +5575,13 @@ begin
Result:=false;
with FGCache do begin
if IsCol then begin
if index>ColCount-1 then
exit;
StartPos:=integer(PtrUInt(AccumWidth[index]));
Dim:=GetColWidths(index);
end else begin
if index>RowCount-1 then
exit;
StartPos:=integer(PtrUInt(AccumHeight[index]));
Dim:= GetRowHeights(index);
end;