mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 12:30:36 +02:00
grids, use CleanSelection for invalid selecction
git-svn-id: trunk@10336 -
This commit is contained in:
parent
67203ca7c6
commit
90dcf1e1af
@ -3692,9 +3692,14 @@ end;
|
|||||||
|
|
||||||
procedure TCustomGrid.SetSelection(const AValue: TGridRect);
|
procedure TCustomGrid.SetSelection(const AValue: TGridRect);
|
||||||
begin
|
begin
|
||||||
if goRangeSelect in Options then begin
|
if goRangeSelect in Options then
|
||||||
fRange:=NormalizarRect(aValue);
|
with AValue do begin
|
||||||
Invalidate;
|
if (Left<0)and(Top<0)and(Right<0)and(Bottom<0) then
|
||||||
|
CancelSelection
|
||||||
|
else begin
|
||||||
|
fRange:=NormalizarRect(aValue);
|
||||||
|
Invalidate;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user