diff --git a/lcl/grids.pas b/lcl/grids.pas index 53aebc4d10..1e0b82c103 100644 --- a/lcl/grids.pas +++ b/lcl/grids.pas @@ -6177,6 +6177,8 @@ begin if IsColumn then begin if Index>ColCount-1 then Index := ColCount-1; + if Index