diff --git a/desktop/sources/scripts/generator.js b/desktop/sources/scripts/generator.js index fdd8367..898e45e 100644 --- a/desktop/sources/scripts/generator.js +++ b/desktop/sources/scripts/generator.js @@ -87,7 +87,7 @@ function Generator(layer,style) return s; } - this.toString = function(offset = {x:0,y:0}, scale = 1, mirror = this.style.mirror_style ? this.style.mirror_style : 0) + this.toString = function(offset = {x:0,y:0}, scale = 1, mirror = this.style && this.style.mirror_style ? this.style.mirror_style : 0) { var s = this.convert(operate(this.layer,offset,scale))