Fixes #1479 vertical segment border does not appear correctly with background