From 9cb83a6ec26dd5ba3564446407b8d0014fa18a2f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 2 Jan 2023 22:20:12 +0530 Subject: [PATCH] ... --- tools/cmd/icat/native.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmd/icat/native.go b/tools/cmd/icat/native.go index e496881e4..24ea16bd2 100644 --- a/tools/cmd/icat/native.go +++ b/tools/cmd/icat/native.go @@ -24,7 +24,7 @@ func add_frame(imgd *image_data, img image.Image, is_opaque bool) *image_frame { img = imaging.FlipH(img) } b := img.Bounds() - f := image_frame{width: b.Dx(), height: b.Dy(), number: len(imgd.frames), left: b.Min.X, top: b.Min.Y} + f := image_frame{width: b.Dx(), height: b.Dy(), number: len(imgd.frames) + 1, left: b.Min.X, top: b.Min.Y} dest_rect := image.Rect(0, 0, f.width, f.height) var final_img image.Image