Fix problem with mtext losing initial spacing when the mtext containe only one printable character. Issue #1316.
This commit is contained in:
parent
3cdcd73b01
commit
2307a753b2
|
@ -639,7 +639,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (text.length == 1 && font.skew && font.skew[n]) {svg.skew = font.skew[n]*1000}
|
if (text.length == 1 && font.skew && font.skew[n]) {svg.skew = font.skew[n]*1000}
|
||||||
if (svg.element.childNodes.length === 1) {
|
if (svg.element.childNodes.length === 1 && !svg.element.firstChild.getAttribute("x")) {
|
||||||
svg.element = svg.element.firstChild;
|
svg.element = svg.element.firstChild;
|
||||||
svg.removeable = false; svg.scale = scale;
|
svg.removeable = false; svg.scale = scale;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user