Commit fd1a0241 authored by David Schnur's avatar David Schnur

Merge pull request #1135 from coldford/master

Fixed a bug where plotting a chart crashes if the placeholder doesn't have a font size
parents 47017263 593cbc5f
......@@ -737,7 +737,7 @@ Licensed under the MIT license.
var i, axisOptions, axisCount,
fontDefaults = {
style: placeholder.css("font-style"),
size: Math.round(0.8 * (+placeholder.css("font-size").replace("px", "") || 13)),
size: Math.round(0.8 * (placeholder.css("font-size") ? +placeholder.css('font-size').replace("px", "") : 13)),
variant: placeholder.css("font-variant"),
weight: placeholder.css("font-weight"),
family: placeholder.css("font-family")
......
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