Commit 59b1afed authored by olau@iola.dk's avatar olau@iola.dk

Fix bug when position is 0 in p2c/axisToCanvasCoords


git-svn-id: https://flot.googlecode.com/svn/trunk@267 1e0a6537-2640-0410-bfb7-f154510ff394
parent c78acf87
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment