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