From d4c5f4443f41b7a8f85ae3aa0f8f5a421ad20af2 Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Wed, 7 Oct 2009 15:10:41 +0000 Subject: [PATCH] Fixed bug in findNearbyItem, patch by zollman (issue 190) git-svn-id: https://flot.googlecode.com/svn/trunk@204 1e0a6537-2640-0410-bfb7-f154510ff394 --- NEWS.txt | 1 + jquery.flot.js | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS.txt b/NEWS.txt index f7cdee7..965062d 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -154,6 +154,7 @@ Bug fixes: smarter. - Fix for uneven axis margins (report and patch by Paul Kienzle) and snapping to ticks (concurrent report and patch by lifthrasiir). +- Fixed bug with slicing in findNearbyItems (patch by zollman). Flot 0.5 -------- diff --git a/jquery.flot.js b/jquery.flot.js index d64dd42..c44c4cb 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1848,6 +1848,7 @@ if (item) { i = item[0]; j = item[1]; + ps = series[i].datapoints.pointsize; return { datapoint: series[i].datapoints.points.slice(j * ps, (j + 1) * ps), dataIndex: j,