Skip to content

Commit 2545b7e

Browse files
committed
Fix dimensions parsing in 7.99 nightly
1 parent fa1eda5 commit 2545b7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

InteractiveHtmlBom/ecad/kicad.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,10 @@ def parse_drawing(self, d):
336336
elif (d.GetClass().startswith("PCB_DIM")
337337
and hasattr(pcbnew, "VECTOR_SHAPEPTR")):
338338
result.append(self.parse_dimension(d))
339-
s = self.parse_text(d.Text())
339+
if hasattr(d, "Text"):
340+
s = self.parse_text(d.Text())
341+
else:
342+
s = self.parse_text(d)
340343
else:
341344
self.logger.info("Unsupported drawing class %s, skipping",
342345
d.GetClass())

0 commit comments

Comments
 (0)