Determine the scale factor correctly
Fix error in the logic of the context renderer, that lead to a wrong scale factor when the width was bigger than the height
This commit is contained in:
parent
8d697a3d8e
commit
3ed67c9af6
|
@ -92,9 +92,9 @@ class RenderContext
|
|||
{
|
||||
$this->document = $document;
|
||||
if ($width > $height) {
|
||||
$this->xratio = $width/$height;
|
||||
} elseif ($height < $width) {
|
||||
$this->yratio = $width/$height;
|
||||
$this->xratio = $width / $height;
|
||||
} elseif ($height > $width) {
|
||||
$this->yratio = $height / $width;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue