TAChart: Fix series label direction for an inverted axis.

git-svn-id: trunk@60127 -
This commit is contained in:
wp 2019-01-20 23:12:35 +00:00
parent 71a9406fd6
commit bd9458ebd9

View File

@ -1427,7 +1427,8 @@ begin
lmpNegative: isNeg := true;
lmpInside: isNeg := Source[AIndex]^.Y >= ref;
end;
if ParentChart.IsRightToLeft and IsRotated then isNeg := not IsNeg;
if isRotated and (ParentChart.IsRightToLeft xor GetAxisY.Inverted) then
isNeg := not isNeg;
Result := DIR[IsRotated, isNeg];
end;