LazReport: lrCodeReport: Fix: procedure TextOutXY. Use scale values, from Julio Jiménez B., issue #31155

git-svn-id: trunk@53835 -
This commit is contained in:
jesus 2017-01-02 17:37:31 +00:00
parent b7eac8eeca
commit 99bb8c5526

View File

@ -630,14 +630,14 @@ begin
taLeftJustify: Pos := X;
taRightJustify:
begin
Pos := X - TextWidth(AText);
Pos := X - TextWidth(AText) / XRatio;
end;
taCenter:
begin
Pos := X - (TextWidth(AText) / 2);
Pos := X - (TextWidth(AText) / 2 / XRatio);
end;
end;
DrawText(Pos, Y, TextWidth(AText), TextHeight, AText, Style);
DrawText(Pos, Y, TextWidth(AText) / XRatio + 2, TextHeight / YRatio, AText, Style);
Cursor.Left += TextWidth(AText) / XRatio;
end;