Fix off by one error when shown was not given

This commit is contained in:
Jelte Fennema 2014-10-25 17:40:54 +02:00
parent 2356f4977e
commit 5f1ea081a5

View file

@ -134,7 +134,7 @@ class Morris.Bar extends Morris.Grid
numBars = 1 numBars = 1
else else
numBars = 0 numBars = 0
for i in [0..@options.ykeys.length] for i in [0..@options.ykeys.length-1]
if @hasToShow(i) if @hasToShow(i)
numBars += 1 numBars += 1