From c70b446d650cad91f8305c1701ad4b6d350e6951 Mon Sep 17 00:00:00 2001 From: Teja Date: Thu, 16 Jul 2015 11:43:09 +0200 Subject: [PATCH] bugfix. catching emtpy path attribute d. --- src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js b/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js index 939e5c15..60353bcc 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js +++ b/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js @@ -81,7 +81,8 @@ Snap.plugin(function (Snap, Element, Paper, global) { } var arr; - var d = path_elem.attr('d').trim(); + var d = path_elem.attr('d'); + d = (d || "").trim(); var arr_orig; arr = Snap.parsePathString(d); if (!toCubics) {