From f99b800720c209fab6dfd96a3a752c0c2992f1fe Mon Sep 17 00:00:00 2001 From: Matteo Kloiber Date: Thu, 23 Apr 2015 12:19:21 +0200 Subject: [PATCH] Fixed a bug which would render the background color of the label in the gauge widget incorrectly. This bug was introduced in changeset 137d2a7. --- gauge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gauge.go b/gauge.go index 0d2677e..986f4f3 100644 --- a/gauge.go +++ b/gauge.go @@ -97,7 +97,7 @@ func (g *Gauge) Buffer() []Point { p.Y = pry p.Ch = v p.Fg = g.PercentColor - if w > pos+i { + if w+g.innerX > pos+i { p.Bg = g.BarColor if p.Bg == ColorDefault { p.Bg |= AttrReverse