2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

98_SVG.pm: check for $defs{""} (Forum #32427)

git-svn-id: https://svn.fhem.de/fhem/trunk@7632 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-01-19 19:56:06 +00:00
parent 683e9fb715
commit 9d830526cb

View File

@ -655,7 +655,7 @@ SVG_readgplotfile($$$)
if($l =~ m/^#([^ ]*) (.*)$/) { if($l =~ m/^#([^ ]*) (.*)$/) {
if($1 eq $ldType) { if($1 eq $ldType) {
$src = $ld; $plotfn = $2; $src = $ld; $plotfn = $2;
} elsif($defs{$1}) { } elsif($1 && $defs{$1}) {
$src = $1; $plotfn = $2; $src = $1; $plotfn = $2;
} }
} elsif($l =~ "^plot" || $plot) { } elsif($l =~ "^plot" || $plot) {