Fix bug when position is 0 in p2c/axisToCanvasCoords

git-svn-id: https://flot.googlecode.com/svn/trunk@267 1e0a6537-2640-0410-bfb7-f154510ff394
pull/1/head
olau@iola.dk 16 years ago
parent c78acf87e2
commit 59b1afed91

@ -367,7 +367,7 @@
if (pos[key] == null && axis.n == 1)
key = "x";
if (pos[key]) {
if (pos[key] != null) {
res.left = axis.p2c(pos[key]);
break;
}
@ -381,7 +381,7 @@
if (pos[key] == null && axis.n == 1)
key = "y";
if (pos[key]) {
if (pos[key] != null) {
res.top = axis.p2c(pos[key]);
break;
}

Loading…
Cancel
Save