98_SVG.pm: fix mask for straight lines (Forum #87699)

git-svn-id: https://svn.fhem.de/fhem/trunk@16737 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2018-05-13 12:26:00 +00:00
parent ad73a49576
commit 31ce04260d

View File

@@ -1459,7 +1459,8 @@ SVG_render($$$$$$$$$$)
######################
# Mask:
SVG_pO "<defs>".
"<mask id='mask_$name' x='0' y='0' width ='$ow' height ='$oh'>".
"<mask id='mask_$name' maskUnits='userSpaceOnUse' ".
"x='0' y='0' width ='$ow' height ='$oh'>".
sprintf("<rect x='%d' y='%d' width='%d' height='%d' ",
$x-2, $y-1, $w+2, $h+1).
"style='stroke:none; fill:#ffffff'/>".