Display: fix line smoothing for degenerate lines (with a single point)

Fixes #1