Polygon with single point results in parser error
Bug #1844872 reported by
Rene Poeschl
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Critical
|
Seth Hillbrand |
Bug Description
A forum user reported that they had trouble opening a pcb file of theirs on the next day. The parser complains on a polygon with a single point (line 1240 in the file)
Forum post: https:/
Changed in kicad: | |
importance: | Undecided → Critical |
assignee: | nobody → Seth Hillbrand (sethh) |
milestone: | none → 5.1.5 |
status: | New → In Progress |
tags: | added: pcbnew |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It's not that there's a single point. It's that the polygon doesn't have a closing ')' for the "pts" clause. Note that the next ')' is 4 spaces away, so it is closing the "polygon" clause.
It looks like somehow the zone iterator was mixed. Looking at the code, there's a way we could have generated this, so I'll fix the proximate cause. But I'm still not certain how we ended up with the broken polygon to begin with.