From af68e17dd3245dcea870835fd1aedf5f571b19b2 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 12 Mar 2020 18:42:20 +0100 Subject: [PATCH] op/paint: set subimage Rect when converting image Signed-off-by: Elias Naur --- op/paint/paint.go | 1 + 1 file changed, 1 insertion(+) diff --git a/op/paint/paint.go b/op/paint/paint.go index 3ac472b3..7ec1d2d1 100644 --- a/op/paint/paint.go +++ b/op/paint/paint.go @@ -63,6 +63,7 @@ func NewImageOp(src image.Image) ImageOp { }) draw.Draw(dst, dst.Bounds(), src, src.Bounds().Min, draw.Src) return ImageOp{ + Rect: dst.Bounds(), src: dst, handle: new(int), }