LCL, grids, fix exception on resizing the last column when AllowOutboundEvents=false, modified patch from vbxier, issue #26138

git-svn-id: trunk@45017 -
This commit is contained in:
jesus 2014-05-12 07:24:01 +00:00
parent 942fc36a0b
commit ea3f43d3c8

View File

@ -2512,9 +2512,19 @@ var
ACase: Integer;
begin
result := false;
with FSizing do begin
OrgIndex := FGCache.ClickCell.X;
if OrgIndex<0 then begin
// invalid starting cell
if not AllowOutBoundEvents and (Cursor=crHSplit) then
// resizing still allowed if mouse is within "resizeable region"
OrgIndex := Index
else
exit;
end;
Index := OrgIndex;
ColRowToOffset(true, true, Index, OffIni, OffEnd);