summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fpdftrans.go2
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,