Commit f42a3fc3 authored by wp's avatar wp
Browse files

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

git-svn-id: trunk@56310 -
parent 688f5244
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment