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:
jesus 2014-03-09 22:16:05 +00:00
parent 10d67b7628
commit bf25a41cc8

View File

@ -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;