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,