mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 05:41:16 +02:00
TAChart: Display major axis marks at the edges of the clip range
git-svn-id: trunk@37565 -
This commit is contained in:
parent
59834c98ec
commit
1f29550b44
@ -466,6 +466,7 @@ procedure TChartAxis.Draw;
|
||||
FValueMax := Min(FAxisTransf(AMax), FValueMax);
|
||||
if FValueMax <= FValueMin then continue;
|
||||
ExpandRange(FValueMin, FValueMax, -EPS);
|
||||
FClipRangeDelta := 1;
|
||||
try
|
||||
BeginDrawing;
|
||||
for m in minorMarks do
|
||||
|
@ -211,6 +211,7 @@ type
|
||||
public
|
||||
FAxis: TChartBasicAxis;
|
||||
FAxisTransf: TTransformFunc;
|
||||
FClipRangeDelta: Integer;
|
||||
FClipRect: ^TRect;
|
||||
FDrawer: IChartDrawer;
|
||||
FPrevCoord: Integer;
|
||||
@ -357,7 +358,7 @@ var
|
||||
rmin, rmax: Integer;
|
||||
begin
|
||||
GetClipRange(rmin, rmax);
|
||||
Result := InRange(ACoord, rmin + 1, rmax - 1);
|
||||
Result := InRange(ACoord, rmin + FClipRangeDelta, rmax - FClipRangeDelta);
|
||||
end;
|
||||
|
||||
procedure TAxisDrawHelper.LineZ(AP1, AP2: TPoint);
|
||||
|
Loading…
Reference in New Issue
Block a user