From bb19f404c026ed6948d0f560c585a49559a54216 Mon Sep 17 00:00:00 2001 From: Jacalz Date: Thu, 24 Aug 2023 12:20:05 +0200 Subject: [PATCH] Unlock canvas lock before refresh of image Seems to fix #4086 --- internal/driver/common/canvas.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/driver/common/canvas.go b/internal/driver/common/canvas.go index 3e3041e4ac..ef22c29ee6 100644 --- a/internal/driver/common/canvas.go +++ b/internal/driver/common/canvas.go @@ -100,7 +100,9 @@ func (c *Canvas) EnsureMinSize() bool { obj := node.obj cache.SetCanvasForObject(obj, c.impl, func() { if img, ok := obj.(*canvas.Image); ok { + c.RUnlock() img.Refresh() // this may now have a different texScale + c.RLock() } })