98_SVG.pm: endPlotNow: avoid drawing lines outside of the chart (Forum #40358)
git-svn-id: https://svn.fhem.de/fhem/trunk@9319 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1443,6 +1443,7 @@ SVG_render($$$$$$$$$$)
|
||||
} else {
|
||||
($d, $v) = split(" ", $l);
|
||||
$d = ($tmul ? int((SVG_time_to_sec($d)-$fromsec)*$tmul) : $d);
|
||||
$d = 0 if($tmul && $d < 0); # Forum #40358
|
||||
if($ld ne $d || $lv ne $v) { # Saves a lot on year zoomlevel
|
||||
$ld = $d; $lv = $v;
|
||||
push @{$dxp}, $d;
|
||||
|
||||
Reference in New Issue
Block a user