mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 22:40:24 +02:00
TAChart: Measure ZeroLevel in axis units when considering it for label direction
git-svn-id: trunk@39129 -
This commit is contained in:
parent
cd0e0c8f2e
commit
8a9d23c7e6
@ -986,10 +986,10 @@ var
|
||||
isNeg: Boolean;
|
||||
begin
|
||||
case MarkPositions of
|
||||
lmpOutside: isNeg := GetGraphPointY(AIndex) < GetZeroLevel;
|
||||
lmpOutside: isNeg := Source[AIndex]^.Y < GetZeroLevel;
|
||||
lmpPositive: isNeg := false;
|
||||
lmpNegative: isNeg := true;
|
||||
lmpInside: isNeg := GetGraphPointY(AIndex) >= GetZeroLevel;
|
||||
lmpInside: isNeg := Source[AIndex]^.Y >= GetZeroLevel;
|
||||
end;
|
||||
Result := DIR[IsRotated, isNeg];
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user