From 9ce9a8d93c13fc705ca55e3f54fc3bd5c461be89 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Wed, 31 Jan 2024 09:10:13 -0800 Subject: [PATCH] Fix an unsafe access of c.Layout --- container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container.go b/container.go index 50cc6d083c..581107d016 100644 --- a/container.go +++ b/container.go @@ -111,7 +111,7 @@ func (c *Container) MinSize() Size { c.lock.Unlock() if layout != nil { - return c.Layout.MinSize(obj) + return layout.MinSize(obj) } minSize := NewSize(1, 1)