diff --git a/src/editor/index.html b/src/editor/index.html index 5592933f..829a43d9 100644 --- a/src/editor/index.html +++ b/src/editor/index.html @@ -123,9 +123,9 @@ - - @@ -185,7 +185,7 @@ -
@@ -257,7 +257,7 @@
Helvetica
Times
- @@ -347,7 +347,7 @@ - + ... @@ -365,7 +365,7 @@ - +
diff --git a/src/svgcanvas/undo.js b/src/svgcanvas/undo.js index 27e95f04..9852190e 100644 --- a/src/svgcanvas/undo.js +++ b/src/svgcanvas/undo.js @@ -190,6 +190,8 @@ export const changeSelectedAttributeNoUndoMethod = function (attr, newValue, ele setHref(elem, newValue); } else if (newValue) { elem.setAttribute(attr, newValue); + } else if (typeof newValue === 'number') { + elem.setAttribute(attr, newValue); } else { elem.removeAttribute(attr); }