From 4ecdfba29cfb99a3ec9aba0eadb1a9fde7e41735 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Thu, 4 Apr 2019 21:37:29 +0300 Subject: [PATCH] - fixed offset after editing drill diameters in Excellon Editor (for real this time, the issue was in Excellon reconstruction) --- flatcamEditors/FlatCAMExcEditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatcamEditors/FlatCAMExcEditor.py b/flatcamEditors/FlatCAMExcEditor.py index 2e4f2d79..e724c6be 100644 --- a/flatcamEditors/FlatCAMExcEditor.py +++ b/flatcamEditors/FlatCAMExcEditor.py @@ -1768,7 +1768,7 @@ class FlatCAMExcEditor(QtCore.QObject): first_linestring = x.geo[0] # get it's coordinates first_linestring_coords = first_linestring.coords - x_coord = first_linestring_coords[0][0] + (float(storage_tooldia) / 2) + x_coord = first_linestring_coords[0][0] + (float(first_linestring.length / 2)) y_coord = first_linestring_coords[0][1] # create a tuple with the coordinates (x, y) and add it to the list that is the value of the