98_SVG.pm: avoid crash after the last patch (Forum #101522)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19688 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-06-23 07:17:03 +00:00
parent 950f0b7f2d
commit 9c5be853fa

View File

@ -1770,8 +1770,9 @@ SVG_render($$$$$$$$$$)
my $scale = "y".($axis)."scale"; $scale = "yscale" if( $axis == 1 );
my $log = ""; $log = $conf{$scale} if( $conf{$scale} );
my $f_log = int($hmax{$a}) ? ((SVG_log10($hmax{$a})-SVG_log10($hmin{$a})) /
($hmax{$a}-$hmin{$a})) : 1;
my $f_log = (int($hmax{$a}) && $dh > 0) ?
((SVG_log10($hmax{$a})-SVG_log10($hmin{$a})) / $dh) :
1;
# offsets
my ($align,$display,$cll);