Skip to content

Commit f26a828

Browse files
set-softqu1ck
authored andcommitted
Fix dimension parsing problem with KiCad 6.0.4
- Added check for VECTOR_SHAPEPTR availability
1 parent 719327a commit f26a828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

InteractiveHtmlBom/ecad/kicad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def parse_drawing(self, d):
321321
s = self.parse_shape(d)
322322
elif d.GetClass() in ["PTEXT", "MTEXT", "FP_TEXT", "PCB_TEXT"]:
323323
s = self.parse_text(d)
324-
elif d.GetClass().startswith("PCB_DIM"):
324+
elif d.GetClass().startswith("PCB_DIM") and hasattr(pcbnew, "VECTOR_SHAPEPTR"):
325325
result.append(self.parse_dimension(d))
326326
s = self.parse_text(d.Text())
327327
else:

0 commit comments

Comments
 (0)