98_SVG.pm: "fix" CSS in plotAsPng (Forum #116138)

git-svn-id: https://svn.fhem.de/fhem/trunk@25691 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-02-16 09:47:22 +00:00
parent 3001227888
commit 075b96f34b

View File

@ -2464,7 +2464,7 @@ plotAsPng(@)
my ($w, $h) = split(",", AttrVal($plotName[0],"plotsize","800,160")); my ($w, $h) = split(",", AttrVal($plotName[0],"plotsize","800,160"));
$svgdata =~ s/<\/svg>/<polyline opacity="0" points="0,0 $w,$h"\/><\/svg>/; $svgdata =~ s/<\/svg>/<polyline opacity="0" points="0,0 $w,$h"\/><\/svg>/;
$svgdata =~ s/\.SVGplot\./\./g; # $svgdata =~ s/\.SVGplot\./\./g; # Forum #116138 / "corrupt" CSS: why?
eval { eval {
require Image::LibRSVG; require Image::LibRSVG;