Fix a bug about hatches and a bug in the advanced style editor.

Hatches were not drawn with an empty dash array.
The Apply button in the advanced style editor erased all the styles except the one being edited.