TAChart: Fix series label direction for an inverted axis.

git-svn-id: branches/fixes_2_0@60200 -
This commit is contained in:
mattias 2019-01-24 09:50:34 +00:00
parent f34df6c717
commit 250a385e08

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;