Browse Source

- fixed offset after editing drill diameters in Excellon Editor (for real this time, the issue was in Excellon reconstruction)

Marius Stanciu 6 years ago
parent
commit
4ecdfba29c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flatcamEditors/FlatCAMExcEditor.py

+ 1 - 1
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