- fixed offset after editing drill diameters in Excellon Editor.

This commit is contained in:
Marius Stanciu 2019-04-04 21:22:45 +03:00
parent f43bed8c66
commit b9a4981cd0
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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():