Fixed bug in findNearbyItem, patch by zollman (issue 190)

git-svn-id: https://flot.googlecode.com/svn/trunk@204 1e0a6537-2640-0410-bfb7-f154510ff394
pull/1/head
olau@iola.dk 17 years ago
parent 2b9de8299e
commit d4c5f4443f

@ -154,6 +154,7 @@ Bug fixes:
smarter. smarter.
- Fix for uneven axis margins (report and patch by Paul Kienzle) and - Fix for uneven axis margins (report and patch by Paul Kienzle) and
snapping to ticks (concurrent report and patch by lifthrasiir). snapping to ticks (concurrent report and patch by lifthrasiir).
- Fixed bug with slicing in findNearbyItems (patch by zollman).
Flot 0.5 Flot 0.5
-------- --------

@ -1848,6 +1848,7 @@
if (item) { if (item) {
i = item[0]; i = item[0];
j = item[1]; j = item[1];
ps = series[i].datapoints.pointsize;
return { datapoint: series[i].datapoints.points.slice(j * ps, (j + 1) * ps), return { datapoint: series[i].datapoints.points.slice(j * ps, (j + 1) * ps),
dataIndex: j, dataIndex: j,

Loading…
Cancel
Save