- contributed by @uwe - also assure that the LineStyle is restricted to the range 0-5 fix another conversion routine mistake