From 88e0567b46c17bcd1a676babec8877981e8922ec Mon Sep 17 00:00:00 2001 From: David Schnur Date: Sat, 22 Dec 2012 10:00:16 -0500 Subject: [PATCH] Tweak comparison order for clarity. --- jquery.flot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.flot.js b/jquery.flot.js index 6788f14..03e8e32 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -439,7 +439,7 @@ Licensed under the MIT license. // If any of the series have fixed color indexes, then we need to // generate at least as many colors as the highest index. - if (maxIndex >= neededColors) { + if (neededColors <= maxIndex) { neededColors = maxIndex + 1; }