diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e8f2684..2941d1b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,8 @@ CHANGELOG for FlatCAM Evo beta - in Distance Plugin: added a new way to display the angle (angles between 181° and 359° are subtracted from 360°) - in Distance Plugin: "snap to center" feature now works outside the Editors too (for Gerber object pads and Excellon object drill holes) - some minor changes in Distance Plugin -- when changing workspace orientation fixed leaving behind the old frame on the cavnas +- when changing workspace orientation fixed leaving behind the old frame on the canvas +- improved how the PDF printing works: now the Excellon files are always on top and from the rest of objects the first selected is on top, below the Excellons 29.03.2022 diff --git a/appMain.py b/appMain.py index bbdeb672..bf68f6d4 100644 --- a/appMain.py +++ b/appMain.py @@ -10696,6 +10696,13 @@ class MenuFileHandlers(QtCore.QObject): } ) + # make sure that the Excellon objeacts are drawn on top of everything + excellon_objs = [obj for obj in obj_selection if obj.kind == 'excellon'] + # reverse the object order such that the first selected is on top + non_excellon_objs = [obj for obj in obj_selection if obj.kind != 'excellon'][::-1] + obj_selection = non_excellon_objs + excellon_objs + + # generate the SVG files from the application objects exported_svg = [] for obj in obj_selection: svg_obj = obj.export_svg(scale_stroke_factor=0.0)