98_DOIF.pm: icon position fixed in svg bar functions

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24016 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Damian 2021-03-19 23:34:44 +00:00
parent c24948a98d
commit db74bbf64a

View File

@ -4392,9 +4392,9 @@ sub bar
if (defined ($icon)) { if (defined ($icon)) {
($ic,$iscale,$ix,$iy,$rotate)=split(",",$icon); ($ic,$iscale,$ix,$iy,$rotate)=split(",",$icon);
if (defined ($ix)) { if (defined ($ix)) {
$ix+=$bwidth/2+5; $ix+=$bwidth/2+3;
} else { } else {
$ix=$bwidth/2+5; $ix=$bwidth/2+3;
}; };
if (defined ($iy)) { if (defined ($iy)) {
$iy+=$ypos; $iy+=$ypos;