This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch activemq-5.15.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-5.15.x by this push:
new 9c994d9 Remove out-of-bounds index comparison
9c994d9 is described below
commit 9c994d98cfb51b248dcf6795e82942ae76588d0b
Author: Gabriel Medeiros Coelho <[email protected]>
AuthorDate: Thu Oct 17 19:20:36 2019 -0300
Remove out-of-bounds index comparison
(cherry picked from commit 44cae0e8733d2fa6780067c41d915a2f2e70fc04)
---
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))