Fixed a bug which would render the background color of the label in the gauge widget incorrectly.

This bug was introduced in changeset 137d2a7.
This commit is contained in:
Matteo Kloiber 2015-04-23 12:19:21 +02:00
parent 4e7911d1f3
commit f99b800720
1 changed files with 1 additions and 1 deletions

View File

@ -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