op/paint: set subimage Rect when converting image

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-03-12 18:42:20 +01:00
parent 7c1a21ce56
commit af68e17dd3
+1
View File
@@ -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),
}