mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 15:08:10 +00:00
Remove out-of-bounds index comparison
This commit is contained in:
parent
c26742235f
commit
44cae0e873
@ -454,7 +454,7 @@ PlotKit.Layout.prototype._evaluateLineTicksForXAxis = function() {
|
||||
var tickCount = 0;
|
||||
|
||||
this.xticks = new Array();
|
||||
for (var i = 0; i <= xvalues.length; i++) {
|
||||
for (var i = 0; i < xvalues.length; i++) {
|
||||
if (xvalues[i] >= (tickCount) * roughSeparation) {
|
||||
var pos = this.xscale * (xvalues[i] - this.minxval);
|
||||
if ((pos > 1.0) || (pos < 0.0))
|
||||
|
Loading…
x
Reference in New Issue
Block a user