summaryrefslogtreecommitdiffstats
path: root/src/text.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.js')
-rw-r--r--src/text.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.js b/src/text.js
index 79a4e1e..debc1fb 100644
--- a/src/text.js
+++ b/src/text.js
@@ -159,7 +159,7 @@ SVG.Text = SVG.invent({
// overwrite method from parent to set data properly
, setData: function(o){
this.dom = o
- this.dom.leading = o.leading ? new SVG.Number(o.leading.value, o.leading.unit) : new SVG.Number(1.3)
+ this.dom.leading = new SVG.Number(o.leading || 1.3)
return this
}
}