mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 00:54:03 +02:00
TAChart: Fix centering of axis title for chart panes
git-svn-id: trunk@48501 -
This commit is contained in:
parent
5fd753e72e
commit
feb46ca59a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user