Fixed scanning bug identified in comments in pull request #1119.
NFA calculations now generate better line segments.
Merge pull request #2774 from 23pointsNorth:lsd-nfa-fix