2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

98_SVG.pm: fix steps related problem (Forum #87699)

git-svn-id: https://svn.fhem.de/fhem/trunk@16795 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-05-29 19:00:21 +00:00
parent 31af26d815
commit 86ffdd7af0

View File

@ -1983,7 +1983,7 @@ SVG_render($$$$$$$$$$)
foreach my $i (1..$nEl) {
my ($x1, $y1) = ($x+$dxp->[$i-1], $y+$h-($dyp->[$i-1]-$min)*$hmul);
my ($x2, $y2) = ($x+$dxp->[$i], $y+$h-($dyp->[$i] -$min)*$hmul);
next if(int($x2) == $lx && int($y1) == $ly);
next if(int($x2) == $lx && int($y2) == $ly);
$lx = int($x2); $ly = int($y2);
if($i == $nEl) {
if($lType eq "steps") {