mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 05:19:31 +02:00
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:
parent
942fc36a0b
commit
ea3f43d3c8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user