Handle special case where line starts and ends at same point