summaryrefslogtreecommitdiff
path: root/label.go
diff options
context:
space:
mode:
Diffstat (limited to 'label.go')
-rw-r--r--label.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/label.go b/label.go
index 88e79af..be19949 100644
--- a/label.go
+++ b/label.go
@@ -63,10 +63,9 @@ func (l *Label) setRect(x int, y int, width int, height int, winheight int) erro
return l.sysData.setRect(x, y, width, height, winheight)
}
-func (l *Label) preferredSize() (width int, height int, err error) {
+func (l *Label) preferredSize() (width int, height int) {
l.lock.Lock()
defer l.lock.Unlock()
- width, height = l.sysData.preferredSize()
- return
+ return l.sysData.preferredSize()
}