Skip to content

Commit

Permalink
Fix an unsafe access of c.Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth authored Jan 31, 2024
1 parent 5632834 commit 9ce9a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ce9a8d

Please sign in to comment.