Fixes #3976 - get shape.Line widget (and polyline and arrow) to render
properly in preview.