From 0e32aff30b87b7dc355c825949e6096ca90e7165 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 15 Oct 2014 13:30:35 -0400 Subject: Fixed compiler errors. --- newctrl/grid.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'newctrl/grid.go') diff --git a/newctrl/grid.go b/newctrl/grid.go index 0400ec0..f8fd616 100644 --- a/newctrl/grid.go +++ b/newctrl/grid.go @@ -364,7 +364,6 @@ func (g *grid) resize(x int, y int, width int, height int, d *sizing) { // 8) and FINALLY we draw for _, ycol := range gg { - current = nil for _, i := range ycol { if i != -1 { // treat empty cells like spaces g.controls[i].control.resize( @@ -374,7 +373,7 @@ func (g *grid) resize(x int, y int, width int, height int, d *sizing) { } } - return allocations + return } func (g *grid) preferredSize(d *sizing) (width, height int) { -- cgit v1.2.3