Avoid division by zero in updateLineDash
Qt measures dash patterns in terms of line width. This means that you have to divide by the width, which doesn't work if the line width is 'cosmetic', i.e., zero. The Qt documentation states that this case should be treated as if the line width was 1 pixel.
Closes #695 (closed)