This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/master by this push:
new 44cae0e Remove out-of-bounds index comparison
new 17c417e Merge pull request #398 from gabrielmcoelho/patch-1
44cae0e is described below
commit 44cae0e8733d2fa6780067c41d915a2f2e70fc04
Author: Gabriel Medeiros Coelho <[email protected]>
AuthorDate: Thu Oct 17 19:20:36 2019 -0300
Remove out-of-bounds index comparison
---
activemq-web-console/src/main/webapp/js/plotkit/Layout.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/activemq-web-console/src/main/webapp/js/plotkit/Layout.js
b/activemq-web-console/src/main/webapp/js/plotkit/Layout.js
index f57951a..eea64aa 100644
--- a/activemq-web-console/src/main/webapp/js/plotkit/Layout.js
+++ b/activemq-web-console/src/main/webapp/js/plotkit/Layout.js
@@ -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))