mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 01:42:19 +02:00
grids, use CleanSelection for invalid selecction
git-svn-id: trunk@10336 -
This commit is contained in:
parent
67203ca7c6
commit
90dcf1e1af
@ -3692,11 +3692,16 @@ 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
|
||||||
|
with AValue do begin
|
||||||
|
if (Left<0)and(Top<0)and(Right<0)and(Bottom<0) then
|
||||||
|
CancelSelection
|
||||||
|
else begin
|
||||||
fRange:=NormalizarRect(aValue);
|
fRange:=NormalizarRect(aValue);
|
||||||
Invalidate;
|
Invalidate;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
function TCustomGrid.doColSizing(X, Y: Integer): Boolean;
|
function TCustomGrid.doColSizing(X, Y: Integer): Boolean;
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user