From b2469d27d5f6e017ee6437e93e4c6ba6c15beb05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KB=20J=C3=B8rgensen?= Date: Wed, 12 Oct 2016 10:24:10 +0200 Subject: [PATCH] Fixed an issue where resizing an element would set stroke="null" on it. --- editor/svgcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 754745fc..5c8d6cb8 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1305,7 +1305,7 @@ var getMouseTarget = this.getMouseTarget = function(evt) { var _stroke = ele.getAttributeNS(null, 'stroke'); ele.removeAttributeNS(null, 'stroke'); //Re-apply stroke after delay. Anything higher than 1 seems to cause flicker - setTimeout(function() { ele.setAttributeNS(null, 'stroke', _stroke); }, 0); + if(_stroke !== null) setTimeout(function() { ele.setAttributeNS(null, 'stroke', _stroke); }, 0); }; } mouse_target.style.vectorEffect = 'non-scaling-stroke';