Commit 88e0567b authored by David Schnur's avatar David Schnur

Tweak comparison order for clarity.

parent 61c1cad9
...@@ -439,7 +439,7 @@ Licensed under the MIT license. ...@@ -439,7 +439,7 @@ Licensed under the MIT license.
// If any of the series have fixed color indexes, then we need to // If any of the series have fixed color indexes, then we need to
// generate at least as many colors as the highest index. // generate at least as many colors as the highest index.
if (maxIndex >= neededColors) { if (neededColors <= maxIndex) {
neededColors = maxIndex + 1; neededColors = maxIndex + 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment