summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2019-07-20 09:32:52 -0400
committerKurt <kurt.w.jung@gmail.com>2019-07-20 09:32:52 -0400
commitd515bd8e272ed758b203650b31ad6e83e84a0f3e (patch)
tree4bfb3e749464121719fda1169dbe8485e821758a
parent4c5c3288c806b7d607796adfe13d676714796954 (diff)
parentd0f2d2e94a89ab84c0c647ebb0873f43593d89fd (diff)
Merge branch 'master' of https://github.com/seletskiy/gofpdf into seletskiy-master
-rw-r--r--fpdf.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/fpdf.go b/fpdf.go
index 35496c2..a676331 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -2829,7 +2829,9 @@ func (f *Fpdf) WriteAligned(width, lineHeight float64, textStr, alignStr string)
f.Write(lineHeight, lineStr)
f.SetLeftMargin(lMargin)
default:
+ f.SetRightMargin(pageWidth - lMargin - width)
f.Write(lineHeight, lineStr)
+ f.SetRightMargin(rMargin)
}
}
}