From f6b279ce346876a45d1825db25dac1dec06e750d Mon Sep 17 00:00:00 2001 From: David Schnur Date: Wed, 19 Dec 2012 20:25:46 -0500 Subject: [PATCH] Fixed a logic error in series color generation. This addresses #906, the case where a fixed color index on a series results in the color generator producing one color less than is actually needed. --- jquery.flot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.flot.js b/jquery.flot.js index 0d0377b..19de082 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -439,7 +439,7 @@ Licensed under the MIT license. // If any of the user colors are numeric indexes, then we // need to generate at least as many as the highest index. - if (maxIndex > neededColors) { + if (maxIndex >= neededColors) { neededColors = maxIndex + 1; }