Skip to content

Commit 4c6f12d

Browse files
When no scale is specified in getSvgString() treat as 1
1 parent 297c982 commit 4c6f12d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/modules/Exports.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ class Exports {
4747
}
4848

4949
getSvgString(scale) {
50+
if (scale == undefined) {
51+
scale = 1; // if no scale is specified, don't scale...
52+
}
5053
let svgString = this.w.globals.dom.Paper.svg()
5154
// in case the scale is different than 1, the svg needs to be rescaled
5255
if (scale !== 1) {

0 commit comments

Comments
 (0)