mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 15:20:49 +02:00
TAChart: Fix drawing of Axis.Title with Attachment = maCenter
git-svn-id: trunk@36156 -
This commit is contained in:
parent
0ef97f99db
commit
7e37bace92
@ -491,6 +491,9 @@ var
|
|||||||
begin
|
begin
|
||||||
if not Visible or (ASize = 0) then exit;
|
if not Visible or (ASize = 0) then exit;
|
||||||
p := ACenter;
|
p := ACenter;
|
||||||
|
if Title.DistanceToCenter then
|
||||||
|
d := Title.Distance
|
||||||
|
else
|
||||||
d := (ASize + Title.Distance) div 2;
|
d := (ASize + Title.Distance) div 2;
|
||||||
case Alignment of
|
case Alignment of
|
||||||
calLeft: p.X := FTitleRect.Left - d;
|
calLeft: p.X := FTitleRect.Left - d;
|
||||||
|
Loading…
Reference in New Issue
Block a user