From b9a4981cd04807ea2c12be9514ca399fe9653523 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Thu, 4 Apr 2019 21:22:45 +0300 Subject: [PATCH] - fixed offset after editing drill diameters in Excellon Editor. --- README.md | 1 + flatcamEditors/FlatCAMExcEditor.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5bfe394a..4b7bd963 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ CAD program, and create G-Code for Isolation routing. - modified the bogus diameters series for Excellon objects that do not have tool diameter info - made Excellon Editor aware of the fact that the Excellon object that is edited has fake (bogus) tool diameters and therefore it will not sort the tools based on diameter but based on tool number - fixed bug on Excellon Editor: when diameter is edited in Tools Table and the target diameter is already in the tool table, the drills from current tool are moved to the new tool (with new dia) - before it crashed +- fixed offset after editing drill diameters in Excellon Editor. 3.04.2019 diff --git a/flatcamEditors/FlatCAMExcEditor.py b/flatcamEditors/FlatCAMExcEditor.py index 7f401af6..2e4f2d79 100644 --- a/flatcamEditors/FlatCAMExcEditor.py +++ b/flatcamEditors/FlatCAMExcEditor.py @@ -1536,7 +1536,8 @@ class FlatCAMExcEditor(QtCore.QObject): for shape in self.storage_dict[dia_changed].get_objects(): geometry.append(DrawToolShape( - MultiLineString([affinity.scale(subgeo, xfact=factor, yfact=factor) for subgeo in shape.geo]))) + MultiLineString([affinity.scale(subgeo, xfact=factor, yfact=factor, origin='center') + for subgeo in shape.geo]))) # add bogus drill points (for total count of drills) for k, v in self.olddia_newdia.items():