From 94effaeda7b8db8c5256c65faf96f82fd074b2d1 Mon Sep 17 00:00:00 2001 From: make-ing Date: Tue, 16 Feb 2016 13:54:39 +0100 Subject: [PATCH] fixed wrong positioning if only x2 value was to out of bounds maybe also need to be tested for y direction --- src/octoprint/plugins/svgtogcode/static/js/working_area.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/svgtogcode/static/js/working_area.js b/src/octoprint/plugins/svgtogcode/static/js/working_area.js index 24f4d498..108b3e4e 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/working_area.js +++ b/src/octoprint/plugins/svgtogcode/static/js/working_area.js @@ -345,7 +345,7 @@ $(function(){ dx = -svgBB.x + 0.01; outside = true; } else if(svgBB.x2 > waBB.x2){ - dx = -svgBB.x2 + waBB.x2 - 0.01; + dx = -svgBB.x + 0.01; outside = true; } if(svgBB.y < waBB.y){