2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 08:11:44 +00:00

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 c10a2318c8
commit 3c5327f4d0

View File

@ -786,7 +786,11 @@ SVG_readgplotfile($$$)
} }
($err1, @svgplotfile) = FileRead($gplot_pgm); ($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); return ($err1, undef) if($err2);
my ($plotfnCnt, $srcNum) = (0,0); my ($plotfnCnt, $srcNum) = (0,0);
my @empty; my @empty;