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:
rudolfkoenig
2015-09-27 10:10:19 +00:00
parent 8891d2be4b
commit b0526004f9

View File

@@ -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;