From 59b1afed912273f03db943678a55b72cfc16bdbc Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Mon, 4 Oct 2010 17:57:16 +0000 Subject: [PATCH] Fix bug when position is 0 in p2c/axisToCanvasCoords git-svn-id: https://flot.googlecode.com/svn/trunk@267 1e0a6537-2640-0410-bfb7-f154510ff394 --- jquery.flot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.flot.js b/jquery.flot.js index 182f457..1c69f9d 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -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; }