From 1510af0005529659798e69fcd9c8f545ee0aa3e1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 24 Feb 2014 10:44:20 -0500 Subject: [PATCH] Fixed some compiler errors in the last few commits. --- stack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stack.go b/stack.go index fb6af57..685d223 100644 --- a/stack.go +++ b/stack.go @@ -42,7 +42,7 @@ func (s *Stack) SetStretchy(index int) { s.lock.Lock() defer s.lock.Unlock() - s[index] = true // TODO explicitly check for index out of bounds? + s.stretchy[index] = true // TODO explicitly check for index out of bounds? } func (s *Stack) make(window *sysData) error { @@ -94,7 +94,7 @@ func (s *Stack) setRect(x int, y int, width int, height int) error { stretchyht /= nStretchy } } - for i, c := range controls { + for i, c := range s.controls { if !s.stretchy[i] { continue }