From b66c291b2c665c09e392a160513f2eb97833f416 Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Mon, 8 Sep 2008 08:54:05 +0000 Subject: [PATCH] Fixed bug when borderWidth is set to 0 git-svn-id: https://flot.googlecode.com/svn/trunk@69 1e0a6537-2640-0410-bfb7-f154510ff394 --- NEWS.txt | 1 + jquery.flot.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.txt b/NEWS.txt index 2a7915e..fd44d81 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -19,6 +19,7 @@ the fill. Fixed a bug in calculating spacing around the plot (reported by timothytoe). Fixed a bug in finding max values for all-negative data sets. Prevent the possibility of eternal looping in tick calculations. +Fixed a bug when borderWidth is set to 0 (reported by Rob/sanchothefat). Flot 0.4 diff --git a/jquery.flot.js b/jquery.flot.js index cf4b4c1..a033c4d 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -860,8 +860,9 @@ ctx.strokeStyle = options.grid.color; ctx.lineJoin = "round"; ctx.strokeRect(0, 0, plotWidth, plotHeight); - ctx.restore(); } + + ctx.restore(); } function insertLabels() {