Fix problem with mtext losing initial spacing when the mtext containe only one printable character. Issue #1316.

This commit is contained in:
Davide P. Cervone 2015-12-02 14:58:53 -05:00
parent 3cdcd73b01
commit 2307a753b2

View File

@ -639,7 +639,7 @@
}
}
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.removeable = false; svg.scale = scale;
}