plotfunction: Fix vertical alignment of y axis caption (issue #26312)

git-svn-id: trunk@56310 -
This commit is contained in:
wp 2017-11-06 10:28:12 +00:00
parent 688f52440c
commit f42a3fc3a5

View File

@ -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