mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 16:09:41 +02:00
LazReport, improve mouse selecting of thin line objects
git-svn-id: trunk@37017 -
This commit is contained in:
parent
553a853858
commit
62a35aadda
@ -4690,11 +4690,18 @@ end;
|
|||||||
function TfrLineView.PointInView(aX, aY: Integer): Boolean;
|
function TfrLineView.PointInView(aX, aY: Integer): Boolean;
|
||||||
var
|
var
|
||||||
bx, by, bx1, by1, w1: Integer;
|
bx, by, bx1, by1, w1: Integer;
|
||||||
|
tmp: Double;
|
||||||
begin
|
begin
|
||||||
if FrameStyle=frsDouble then
|
|
||||||
w1 := Round(FrameWidth * 1.5)
|
if FrameWidth<1.0 then
|
||||||
|
tmp := 1.0
|
||||||
else
|
else
|
||||||
w1 := Round(FrameWidth);
|
tmp := FrameWidth;
|
||||||
|
|
||||||
|
if FrameStyle=frsDouble then
|
||||||
|
w1 := Round(tmp * 1.5)
|
||||||
|
else
|
||||||
|
w1 := Round(tmp);
|
||||||
|
|
||||||
bx:=x-w1;
|
bx:=x-w1;
|
||||||
by:=y-w1;
|
by:=y-w1;
|
||||||
|
Loading…
Reference in New Issue
Block a user