Fixed regression causing thin walls to be processed twice, thus producing overlapping straight paths and zigzag. #1035