Correct resampling behaviour for lines.