Merge pull request #21593 from fappels/develop_fix_standard_label

Fix standard label wrong var name
This commit is contained in:
Laurent Destailleur 2022-07-28 14:14:11 +02:00 committed by GitHub
commit c71a1e5ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;