From 7e729822590241ba8eb9d4d8d3b10a5fe6739635 Mon Sep 17 00:00:00 2001 From: Marco Marche Date: Wed, 14 Feb 2024 10:27:36 +0100 Subject: [PATCH] fix(ToolMilling): don't iterate over totals rows on excellon table rebuild --- appPlugins/ToolMilling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appPlugins/ToolMilling.py b/appPlugins/ToolMilling.py index d2adc41b..e6de180e 100644 --- a/appPlugins/ToolMilling.py +++ b/appPlugins/ToolMilling.py @@ -845,7 +845,8 @@ class ToolMilling(AppTool, Excellon): def on_exc_rebuild_ui(self): # read the table tools uid current_uid_list = [] - for row in range(self.ui.tools_table_mill_exc.rowCount()): + # we have (n+2) rows because there are 'n' tools, each a row, plus the last 2 rows for totals. + for row in range(self.ui.tools_table_mill_exc.rowCount() - 2): uid = int(self.ui.tools_table_mill_exc.item(row, 3).text()) current_uid_list.append(uid)