This commit is contained in:
mike-000
2020-02-05 20:17:18 +00:00
committed by GitHub
parent 3c2dfb511a
commit 319b64ed65

View File

@@ -2580,7 +2580,7 @@ function writeLineStyle(node, style, objectStack) {
const /** @type {import("../xml.js").NodeStackItem} */ context = {node: node};
const properties = {
'color': style.getColor(),
'width': style.getWidth()
'width': Number(style.getWidth()) || 1
};
const parentNode = objectStack[objectStack.length - 1].node;
const orderedKeys = LINE_STYLE_SEQUENCE[parentNode.namespaceURI];