From 05c913963dc687afeff594fc6293708c2637fc13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Fri, 27 Dec 2024 11:43:10 +0100 Subject: [PATCH] wrong parser for scale in config fixes #19 that was origin reported to https://github.com/deepnest-io/Deepnest/issues/199 --- main/deepnest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/deepnest.js b/main/deepnest.js index 03ef338..e23f0d2 100755 --- a/main/deepnest.js +++ b/main/deepnest.js @@ -567,8 +567,8 @@ config.timeRatio = n; } - if (c.scale && parseInt(c.scale) > 0) { - config.scale = parseInt(c.scale); + if (c.scale && parseFloat(c.scale) > 0) { + config.scale = parseFloat(c.scale); } SvgParser.config({