98_SVG.pm: filter "set readonly" when manually creating (Forum #129195)

git-svn-id: https://svn.fhem.de/fhem/trunk@26418 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2022-09-18 14:35:20 +00:00
parent bf30cdeaf9
commit d21a46298b

View File

@@ -786,7 +786,11 @@ SVG_readgplotfile($$$)
}
($err1, @svgplotfile) = FileRead($gplot_pgm);
($err2, @svgplotfile) = FileRead("$FW_gplotdir/template.gplot") if($err1);
if($err1) {
($err2, @svgplotfile) = FileRead("$FW_gplotdir/template.gplot");
@svgplotfile = grep { $_ !~ m/set readonly/ } @svgplotfile;
}
return ($err1, undef) if($err2);
my ($plotfnCnt, $srcNum) = (0,0);
my @empty;