TAChart: Fix centering of axis title for chart panes

git-svn-id: trunk@48501 -
This commit is contained in:
wp 2015-03-25 08:43:48 +00:00
parent 5fd753e72e
commit feb46ca59a

View File

@ -744,9 +744,13 @@ begin
end;
if not Title.PositionOnMarks then
FTitlePos := (rmin + rmax) div 2
else if minc < MaxInt then
else if minc < MaxInt then begin
c := FHelper.GraphToImage(FHelper.FMaxForMarks);
if c < maxc then maxc := c;
c := FHelper.GraphToImage(FHelper.FMinForMarks);
if c > minc then minc := c;
FTitlePos := (maxc + minc) div 2
else
end else
FTitlePos := MaxInt;
if Arrow.Visible then