mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-09 14:49:26 +01:00
fpvectorial: Fix clockwise flag of elliptic arc path segment in case of top-left coordinates.
git-svn-id: trunk@52878 -
This commit is contained in:
parent
c334d3f20a
commit
1bdf5a3004
@ -3362,8 +3362,7 @@ function T2DSegment.GetPointAndTangentForDistance(ADistance: Double; out AX,
|
|||||||
var
|
var
|
||||||
lStartPoint: T3DPoint;
|
lStartPoint: T3DPoint;
|
||||||
begin
|
begin
|
||||||
Result:=inherited GetPointAndTangentForDistance(ADistance, AX, AY,
|
Result:=inherited GetPointAndTangentForDistance(ADistance, AX, AY, ATangentAngle);
|
||||||
ATangentAngle);
|
|
||||||
if not GetStartPoint(lStartPoint) then Exit;
|
if not GetStartPoint(lStartPoint) then Exit;
|
||||||
Result := LineEquation_GetPointAndTangentForLength(lStartPoint, Make3DPoint(X, Y), ADistance, AX, AY, ATangentAngle);
|
Result := LineEquation_GetPointAndTangentForLength(lStartPoint, Make3DPoint(X, Y), ADistance, AX, AY, ATangentAngle);
|
||||||
end;
|
end;
|
||||||
@ -4867,7 +4866,7 @@ begin
|
|||||||
segment.CY := ACenterY;
|
segment.CY := ACenterY;
|
||||||
segment.XRotation := AXAxisRotation;
|
segment.XRotation := AXAxisRotation;
|
||||||
segment.LeftmostEllipse := False; // which value would it have?
|
segment.LeftmostEllipse := False; // which value would it have?
|
||||||
segment.ClockwiseArcFlag := AClockwiseArcFlag;
|
segment.ClockwiseArcFlag := AClockwiseArcFlag xor FPage.UseTopLeftCoordinates;
|
||||||
segment.CenterSetByUser := True;
|
segment.CenterSetByUser := True;
|
||||||
|
|
||||||
AppendSegment(segment);
|
AppendSegment(segment);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user