mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 05:20:31 +02:00
LCL, activate selection if selection is set while goSelectionActive option is specified, patch with changes from wp, issue #25835
git-svn-id: trunk@44389 -
This commit is contained in:
parent
10d67b7628
commit
bf25a41cc8
@ -5226,8 +5226,6 @@ begin
|
||||
end;
|
||||
|
||||
procedure TCustomGrid.SetSelection(const AValue: TGridRect);
|
||||
var
|
||||
OldSelectActive: boolean;
|
||||
begin
|
||||
if goRangeSelect in Options then
|
||||
with AValue do begin
|
||||
@ -5240,11 +5238,9 @@ begin
|
||||
if fRange.Left<FixedCols then fRange.Left := FixedCols;
|
||||
if fRange.Top<FixedRows then fRange.Top := FixedRows;
|
||||
if goSelectionActive in Options then begin
|
||||
OldSelectActive := FSelectActive;
|
||||
FPivot := FRange.TopLeft;
|
||||
FSelectActive := True;
|
||||
MoveExtend(false, FRange.Right, FRange.Bottom);
|
||||
FSelectActive := OldSelectActive;
|
||||
end;
|
||||
Invalidate;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user