diff options
author | Kurt <kurt.w.jung@gmail.com> | 2019-07-20 09:41:38 -0400 |
---|---|---|
committer | Kurt <kurt.w.jung@gmail.com> | 2019-07-20 09:41:38 -0400 |
commit | 20e5ed95b595d65457b8b33d68afdbdd99aa31f9 (patch) | |
tree | ac5447113b722949ea8cb32a05ad8835d29babed | |
parent | d515bd8e272ed758b203650b31ad6e83e84a0f3e (diff) |
Correct placement of pageWidth variable
-rw-r--r-- | fpdf.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |