summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/text.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/text.js b/src/text.js
index 7438cff..20c2c1e 100644
--- a/src/text.js
+++ b/src/text.js
@@ -22,10 +22,6 @@ SVG.Text = SVG.invent({
if (x == null)
return this.attr('x')
- // move lines as well if no textPath is present
- if (!this.textPath)
- this.lines().each(function() { if (this.dom.newLined) this.x(x) })
-
return this.attr('x', x)
}
// Move over y-axis
@@ -127,9 +123,8 @@ SVG.Text = SVG.invent({
this.lines().each(function() {
if (this.dom.newLined) {
- if (!this.textPath)
+ if (!self.textPath())
this.attr('x', self.attr('x'))
-
if(this.text() == '\n') {
blankLineOffset += dy
}else{