Commit ad823de8 authored by David Schnur's avatar David Schnur

Merge pull request #937 from jamiehs/issue-842-cherry-pick

Fix inability to set the point lineWidth to 0.
parents 9108c292 c8335114
......@@ -2092,6 +2092,15 @@ Licensed under the MIT license.
sw = series.shadowSize,
radius = series.points.radius,
symbol = series.points.symbol;
// If the user sets the line width to 0, we change it to a very
// small value. A line width of 0 seems to force the default of 1.
// Doing the conditional here allows the shadow setting to still be
// optional even with a lineWidth of 0.
if( lw == 0 )
lw = 0.0001;
if (lw > 0 && sw > 0) {
// draw shadow in two steps
var w = sw / 2;
......
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