mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
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:
parent
950f0b7f2d
commit
9c5be853fa
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user