Fix for #10611
This commit is contained in:
@@ -2580,7 +2580,7 @@ function writeLineStyle(node, style, objectStack) {
|
|||||||
const /** @type {import("../xml.js").NodeStackItem} */ context = {node: node};
|
const /** @type {import("../xml.js").NodeStackItem} */ context = {node: node};
|
||||||
const properties = {
|
const properties = {
|
||||||
'color': style.getColor(),
|
'color': style.getColor(),
|
||||||
'width': style.getWidth()
|
'width': Number(style.getWidth()) || 1
|
||||||
};
|
};
|
||||||
const parentNode = objectStack[objectStack.length - 1].node;
|
const parentNode = objectStack[objectStack.length - 1].node;
|
||||||
const orderedKeys = LINE_STYLE_SEQUENCE[parentNode.namespaceURI];
|
const orderedKeys = LINE_STYLE_SEQUENCE[parentNode.namespaceURI];
|
||||||
|
|||||||
Reference in New Issue
Block a user