From 2426c18295a6fa8dc7ca994c1ee925b35580c98a Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Tue, 29 May 2018 14:50:03 +1200 Subject: [PATCH] Fixed issue with preview --- desktop/sources/scripts/generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))