mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-26 18:09:23 +02:00
plotfunction: Fix vertical alignment of y axis caption (issue #26312)
git-svn-id: trunk@56310 -
This commit is contained in:
parent
688f52440c
commit
f42a3fc3a5
@ -923,8 +923,8 @@ begin
|
||||
CW:=ACanvas.TextWidth(L);
|
||||
Case AVAxis.Caption.Alignment of
|
||||
taLeftJustify : CY:=OY;
|
||||
taRightJustify : CY:=EY-CW;
|
||||
taCenter : CY:=(EY+OY-CW) div 2;
|
||||
taRightJustify : CY:=EY+CW;
|
||||
taCenter : CY:=(EY+OY+CW) div 2;
|
||||
end;
|
||||
TextOut(ACanvas.Handle, 4, CY, PChar(L), Length(L));
|
||||
if OldFont <> 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user