Rat line calculations miss some lines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcb |
Fix Released
|
Medium
|
Andrew Poelstra |
Bug Description
This bug has popped up quite frequently during the past years, but I've never reported it.
Many times I notice the rat line optimizer sometimes "misses" the last line in a chain of lines, and draws the rat line to the next line (see attached file, where one of the rat lines isn't drawn to the last line in the sequence.
After digging a bit into the code, it looks like the last line in the chain doesn't pass the:
TEST_FLAG (DRCFLAG, line)
test in rats.c:492, and thus it is never added to the subnet. I'm assuming this error is actually traced back to when the line is first drawn (?). Regardless, I don't have the experience with the PCB code to trace this problem any further...hopefully someone smarter than me can figure out why some lines are doing this. I can't find a reproducable method of drawing a line that shows this bug...but drawing a line with the "45 degree forcing" on (and clicking on a point that actually makes two lines) seems to make the bug show up more often then not.
Cheers--
Changed in pcb: | |
status: | Fix Committed → Fix Released |
Changed in pcb: | |
milestone: | none → pcb-20140316 |
Confirmed with latest git HEAD.