- fixed a bug in the FlatCAMGerber.on_mark_cb_click_table() method when moving a Gerber object

- added a way to remember the colors set for the Gerber objects; it will remember the order that they were loaded and set a color previously given
This commit is contained in:
Marius Stanciu
2020-07-20 19:21:17 +03:00
committed by Marius
parent 8409c74e23
commit ebdb2b3ca0
6 changed files with 135 additions and 4 deletions

View File

@@ -1042,7 +1042,11 @@ class GerberObject(FlatCAMObj, Gerber):
self.marked_rows[:] = []
aperture = self.ui.apertures_table.item(cw_row, 1).text()
try:
aperture = self.ui.apertures_table.item(cw_row, 1).text()
except AttributeError:
self.ui_connect()
return
if self.ui.apertures_table.cellWidget(cw_row, 5).isChecked():
self.marked_rows.append(True)