2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

contrib/InfoPanel: bugfix

git-svn-id: https://svn.fhem.de/fhem/trunk@7856 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2015-02-03 19:41:35 +00:00
parent c4ee22fe0b
commit 1ce68a023c

View File

@ -372,8 +372,9 @@ sub btIP_itemPlot {
}
}
($width,$height) = split(",", AttrVal($plotName[0],"plotsize","0,0"));
($newWidth,$newHeight) = _btIP_imgRescale($width,$height,$scale);
my ($haswidth,$hasheight) = split(",", AttrVal($plotName[0],"plotsize","0,0"));
($width,$height) = split(",", AttrVal($plotName[0],"plotsize","800,160"));
($newWidth,$newHeight) = _btIP_imgRescale($width,$height,$scale);
$attr{$plotName[0]}{plotsize} = "$newWidth,$newHeight";
$FW_RET = undef;
@ -386,7 +387,7 @@ sub btIP_itemPlot {
($mimetype, $svgdata) = SVG_showLog("unused");
$attr{$plotName[0]}{plotsize} = undef;
$attr{$plotName[0]}{plotsize} = "$width,$height" if($width || $height);
$attr{$plotName[0]}{plotsize} = "$width,$height" if($haswidth || $hasheight);
$svgdata =~ s/<\/svg>/<polyline opacity="0" points="0,0 $width,$height"\/><\/svg>/;
(undef,undef,undef,$svgdata) = _btIP_imgData($svgdata,1);