Skip to content

Commit

Permalink
Convert the rotations field data to string for the GUI framework to r…
Browse files Browse the repository at this point in the history
…ecognise it.
  • Loading branch information
gyohng authored and Bouni committed Apr 24, 2024
1 parent 42503c4 commit c37d15e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,13 +616,13 @@ def populate_footprint_list(self, *_):
# First check if the part name mathes
for regex, correction in corrections:
if re.search(regex, str(part[1])):
part[8] = correction
part[8] = str(correction)
break
# If there was no match for the part name, check if the package matches
if part[8] == "":
for regex, correction in corrections:
if re.search(regex, str(part[2])):
part[8] = correction
part[8] = str(correction)
break

self.footprint_list.AppendItem(part)
Expand Down

0 comments on commit c37d15e

Please sign in to comment.