diff options
author | Kurt Jung <kurt.w.jung@code.google.com> | 2013-09-10 21:05:20 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@code.google.com> | 2013-09-10 21:05:20 -0400 |
commit | 3232a681d80b157fba9e1855df70b4292c3c71dc (patch) | |
tree | 8074f7ec8371da813d15bc6228d4dfe35a070103 /fpdftrans.go | |
parent | f1a73860a6601291cff879e540465b371d5e2a90 (diff) |
Another catch by Bruno: scaling typo in TransformTranslate.
Diffstat (limited to 'fpdftrans.go')
-rw-r--r-- | fpdftrans.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdftrans.go b/fpdftrans.go index b11a853..95b9ea1 100644 --- a/fpdftrans.go +++ b/fpdftrans.go @@ -102,7 +102,7 @@ func (f *Fpdf) TransformTranslateY(ty float64) { // Move the following text, drawings and images horizontally and vertically by // the amounts specified by tx and ty. func (f *Fpdf) TransformTranslate(tx, ty float64) { - f.Transform(TransformMatrix{1, 0, 0, 1, tx - f.k, -ty * f.k}) + f.Transform(TransformMatrix{1, 0, 0, 1, tx * f.k, -ty * f.k}) } // Rotate the following text, drawings and images around the center point (x, |