From ff9eafb799ef9bd587e03fc309a53d5f3ba23851 Mon Sep 17 00:00:00 2001 From: jesusr Date: Sun, 1 Apr 2012 09:00:34 +0000 Subject: [PATCH] PowerPDF: fix PRLabel center and right justify, from zacheus, issue 21154 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2376 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/powerpdf/PReport.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/powerpdf/PReport.pas b/components/powerpdf/PReport.pas index 0607d287e..4d9a58560 100644 --- a/components/powerpdf/PReport.pas +++ b/components/powerpdf/PReport.pas @@ -1819,8 +1819,8 @@ begin tmpWidth := PdfCanvas.TextWidth(FText); case FAlignment of - taCenter: XPos := Round((Width - tmpWidth) / 2); - taRightJustify: XPos :=Width - Round(tmpWidth); + taCenter: XPos := Round((Self.Width - tmpWidth) / 2); + taRightJustify: XPos :=Self.Width - Round(tmpWidth); else XPos := 0; end;