From b2fedcd828caec435fa5707802d6062a183e90c8 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Fri, 8 Apr 2011 11:33:17 +0200 Subject: [PATCH] Fix recently introduced bug in pie plugin pointed out by Chris R. Patterson --- jquery.flot.pie.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.flot.pie.js b/jquery.flot.pie.js index 55e8013..14a37ad 100644 --- a/jquery.flot.pie.js +++ b/jquery.flot.pie.js @@ -682,7 +682,7 @@ More detail and specific examples can be found in the included HTML file. function drawHighlight(series) { - if (series.angle <= 0 || isNaN(angle)) + if (series.angle <= 0 || isNaN(series.angle)) return; //octx.fillStyle = parseColor(options.series.pie.highlight.color).scale(null, null, null, options.series.pie.highlight.opacity).toString();