Fix wrong varname

This commit is contained in:
Francis Appels 2022-07-27 11:54:55 +02:00
parent 56a569ccc5
commit 40cc55cf91
2 changed files with 4 additions and 4 deletions

View File

@ -179,8 +179,8 @@ class pdf_standard extends CommonStickerGenerator
$widthtouse = $maxwidthtouse;
$heighttouse = round($widthtouse / $imgratio);
} else {
$heightouse = $maxheighttouse;
$widthtouse = round($heightouse * $imgratio);
$heighttouse = $maxheighttouse;
$widthtouse = round($heighttouse * $imgratio);
}
}
//var_dump($this->_Width.'x'.$this->_Height.' with border and scale '.$imgscale.' => max '.$maxwidthtouse.'x'.$maxheighttouse.' => We use '.$widthtouse.'x'.$heighttouse);exit;

View File

@ -141,8 +141,8 @@ class pdf_standardlabel extends CommonStickerGenerator
$widthtouse = $maxwidthtouse;
$heighttouse = round($widthtouse / $imgratio);
} else {
$heightouse = $maxheighttouse;
$widthtouse = round($heightouse * $imgratio);
$heighttouse = $maxheighttouse;
$widthtouse = round($heighttouse * $imgratio);
}
}
//var_dump($this->_Width.'x'.$this->_Height.' with border and scale '.$imgscale.' => max '.$maxwidthtouse.'x'.$maxheighttouse.' => We use '.$widthtouse.'x'.$heighttouse);exit;