From 14d3d034e006ef6dc3b4e8dd5b3b2c0232a81994 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Tue, 3 Feb 2015 15:14:02 +0000 Subject: [PATCH] contrib/Infopanel: minor bugfix git-svn-id: https://svn.fhem.de/fhem/trunk@7846 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/InfoPanel/55_InfoPanel.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/contrib/InfoPanel/55_InfoPanel.pm b/fhem/contrib/InfoPanel/55_InfoPanel.pm index 6c8ae61c4..3866684a7 100644 --- a/fhem/contrib/InfoPanel/55_InfoPanel.pm +++ b/fhem/contrib/InfoPanel/55_InfoPanel.pm @@ -372,7 +372,7 @@ sub btIP_itemPlot { } } - ($width,$height) = split(",", AttrVal($plotName[0],"plotsize","800,160")); + ($width,$height) = split(",", AttrVal($plotName[0],"plotsize","0,0")); ($newWidth,$newHeight) = _btIP_imgRescale($width,$height,$scale); $attr{$plotName[0]}{plotsize} = "$newWidth,$newHeight"; @@ -385,7 +385,8 @@ sub btIP_itemPlot { $FW_pos{off} = ($plotName[2]) ? $plotName[2] : undef; ($mimetype, $svgdata) = SVG_showLog("unused"); - $attr{$plotName[0]}{plotsize} = "$width,$height"; + $attr{$plotName[0]}{plotsize} = undef; + $attr{$plotName[0]}{plotsize} = "$width,$height" if($width || $height); $svgdata =~ s/<\/svg>/<\/svg>/; (undef,undef,undef,$svgdata) = _btIP_imgData($svgdata,1);