LCL: Fix grid not being repainted when the last row is deleted by setting RowCount to 0 (issue #34025, comment #0109658).

git-svn-id: trunk@58624 -
This commit is contained in:
wp 2018-07-24 19:09:14 +00:00
parent eadf7690aa
commit f7e5c6c595

View File

@ -3029,7 +3029,7 @@ var
begin
OldR := FRows.Count;
if AValue<>OldR then begin
if AValue>=1 then begin
if AValue>=0 then begin
NewColCount := ColCount;
if (OldR=0) and FGridPropBackup.ValidData then begin
NewColCount := FGridPropBackup.ColCount;