mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 11:26:55 +00:00
98_DOIF.pm: svg card: fixed automatic scaling min/max problem
git-svn-id: https://svn.fhem.de/fhem/trunk@24274 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
92f6833bb0
commit
0ad4cf03ec
@ -4540,8 +4540,8 @@ sub card
|
|||||||
|
|
||||||
## if (defined $plot and $plot eq "autoscale" and $minVal ne $maxVal) {
|
## if (defined $plot and $plot eq "autoscale" and $minVal ne $maxVal) {
|
||||||
if (!defined $plot and $minVal ne $maxVal) {
|
if (!defined $plot and $minVal ne $maxVal) {
|
||||||
$minPlot=$minVal;
|
$minPlot=($val < $minVal ? $val : $minVal);
|
||||||
$maxPlot=$maxVal;
|
$maxPlot=($val > $maxVal ? $val : $maxVal);
|
||||||
} else {
|
} else {
|
||||||
$minPlot=($min < 0 and $minVal > 0) ? 0:$min;
|
$minPlot=($min < 0 and $minVal > 0) ? 0:$min;
|
||||||
$maxPlot=($max > 0 and $maxVal < 0) ? 0:$max;
|
$maxPlot=($max > 0 and $maxVal < 0) ? 0:$max;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user