From 20e5ed95b595d65457b8b33d68afdbdd99aa31f9 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 20 Jul 2019 09:41:38 -0400 Subject: Correct placement of pageWidth variable --- fpdf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpdf.go b/fpdf.go index a676331..f46680b 100644 --- a/fpdf.go +++ b/fpdf.go @@ -2800,8 +2800,8 @@ func (f *Fpdf) WriteLinkID(h float64, displayStr string, linkID int) { func (f *Fpdf) WriteAligned(width, lineHeight float64, textStr, alignStr string) { lMargin, _, rMargin, _ := f.GetMargins() + pageWidth, _ := f.GetPageSize() if width == 0 { - pageWidth, _ := f.GetPageSize() width = pageWidth - (lMargin + rMargin) } -- cgit v1.2.1-24-ge1ad