Skip to content

Commit

Permalink
Fix dimension parsing problem with KiCad 6.0.4
Browse files Browse the repository at this point in the history
- Added check for VECTOR_SHAPEPTR availability
  • Loading branch information
set-soft authored and qu1ck committed Apr 25, 2022
1 parent 719327a commit f26a828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InteractiveHtmlBom/ecad/kicad.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def parse_drawing(self, d):
s = self.parse_shape(d)
elif d.GetClass() in ["PTEXT", "MTEXT", "FP_TEXT", "PCB_TEXT"]:
s = self.parse_text(d)
elif d.GetClass().startswith("PCB_DIM"):
elif d.GetClass().startswith("PCB_DIM") and hasattr(pcbnew, "VECTOR_SHAPEPTR"):
result.append(self.parse_dimension(d))
s = self.parse_text(d.Text())
else:
Expand Down

0 comments on commit f26a828

Please sign in to comment.