mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 10:22:38 +02:00
LCL, check for col/row index (fixes ocassional Index out of range exception)
git-svn-id: trunk@46353 -
This commit is contained in:
parent
b0ae445fd6
commit
53a0681e2a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user