mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 23:16:52 +00:00
Merge pull request #398 from gabrielmcoelho/patch-1
Remove out-of-bounds index comparison
This commit is contained in:
commit
17c417e808
@ -454,7 +454,7 @@ PlotKit.Layout.prototype._evaluateLineTicksForXAxis = function() {
|
|||||||
var tickCount = 0;
|
var tickCount = 0;
|
||||||
|
|
||||||
this.xticks = new Array();
|
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) {
|
if (xvalues[i] >= (tickCount) * roughSeparation) {
|
||||||
var pos = this.xscale * (xvalues[i] - this.minxval);
|
var pos = this.xscale * (xvalues[i] - this.minxval);
|
||||||
if ((pos > 1.0) || (pos < 0.0))
|
if ((pos > 1.0) || (pos < 0.0))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user