Fixed the bug with diagonal dashing.