mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 15:20:29 +02:00
fixed GetRowHeights for row 0 and GetColWidths for col 0 from Jesus
git-svn-id: trunk@5546 -
This commit is contained in:
parent
99d8e9bb41
commit
f01c40506c
@ -824,7 +824,7 @@ end;
|
||||
|
||||
function TCustomGrid.GetRowHeights(Arow: Integer): Integer;
|
||||
begin
|
||||
if (aRow<RowCount) and (aRow>0) then
|
||||
if (aRow<RowCount) and (aRow>=0) then
|
||||
Result:=Integer(FRows[aRow])
|
||||
else
|
||||
Result:=-1;
|
||||
@ -869,7 +869,7 @@ end;
|
||||
|
||||
function TCustomGrid.GetColWidths(Acol: Integer): Integer;
|
||||
begin
|
||||
if (aCol<ColCount) and (aCol>0) then
|
||||
if (aCol<ColCount) and (aCol>=0) then
|
||||
Result:=Integer(FCols[aCol])
|
||||
else
|
||||
Result:=-1;
|
||||
|
Loading…
Reference in New Issue
Block a user