mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 12:00:29 +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);
|
||||
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);
|
||||
Invalidate;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TCustomGrid.doColSizing(X, Y: Integer): Boolean;
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user