ui: fix TransformOp.Offset

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-08-07 14:20:40 +02:00
parent f223c7b0c9
commit 9be695cc24
+1 -1
View File
@@ -57,7 +57,7 @@ func (r *InvalidateOp) Decode(d []byte) {
}
func (t TransformOp) Offset(o f32.Point) TransformOp {
return TransformOp{o}
return t.Mul(TransformOp{o})
}
func (t TransformOp) InvTransform(p f32.Point) f32.Point {