diff options
Diffstat (limited to 'label.go')
| -rw-r--r-- | label.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -55,14 +55,14 @@ func (l *Label) make(window *sysData) error { return nil } -func (l *Label) setRect(x int, y int, width int, height int) []resizerequest { - return []resizerequest{resizerequest{ +func (l *Label) setRect(x int, y int, width int, height int, rr *[]resizerequest) { + *rr = append(*rr, resizerequest{ sysData: l.sysData, x: x, y: y, width: width, height: height, - }} + }) } func (l *Label) preferredSize() (width int, height int) { |
