From f0fba5ccd1ff6065b3d5634b60b8f9f36c11448c Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Tue, 7 Jul 2020 16:23:22 +0300 Subject: [PATCH] - fixed the Panelize Tool so the box object stay as selected on new objects are loaded; any selection shape on canvas is deleted when clicking Panelize --- CHANGELOG.md | 1 + appTools/ToolPanelize.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d074084d..9c9bf667 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta - updated the Panelize Tool to save the source code for the panelized Excellon objects so it can be saved from the Save project tab context menu entry - updated the Panelize Tool to save the source code for the panelized Geometry objects as DXF file +- fixed the Panelize Tool so the box object stay as selected on new objects are loaded; any selection shape on canvas is deleted when clicking Panelize 6.07.2020 diff --git a/appTools/ToolPanelize.py b/appTools/ToolPanelize.py index 5f90b507..9feaf603 100644 --- a/appTools/ToolPanelize.py +++ b/appTools/ToolPanelize.py @@ -180,6 +180,9 @@ class Panelize(AppTool): def on_panelize(self): name = self.ui.object_combo.currentText() + # delete any selection box + self.app.delete_selection_shape() + # Get source object to be panelized. try: panel_source_obj = self.app.collection.get_by_name(str(name)) @@ -729,7 +732,7 @@ class PanelizeUI: self.box_combo = FCComboBox() self.box_combo.setModel(self.app.collection) self.box_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex())) - self.box_combo.is_last = True + # self.box_combo.is_last = True self.box_combo.setToolTip( _("The actual object that is used as container for the\n "