diff options
Diffstat (limited to 'checkbox.go')
| -rw-r--r-- | checkbox.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/checkbox.go b/checkbox.go index 5dfd3d1..2b2a71a 100644 --- a/checkbox.go +++ b/checkbox.go @@ -75,10 +75,9 @@ func (c *Checkbox) setRect(x int, y int, width int, height int, winheight int) e return c.sysData.setRect(x, y, width, height, winheight) } -func (c *Checkbox) preferredSize() (width int, height int, err error) { +func (c *Checkbox) preferredSize() (width int, height int) { c.lock.Lock() defer c.lock.Unlock() - width, height = c.sysData.preferredSize() - return + return c.sysData.preferredSize() } |
