N°7552 - Fix implicit float to int conversion when uploading inline images

This commit is contained in:
Molkobain
2024-06-19 09:08:00 +02:00
parent 1de2502fe9
commit c2d984d470

View File

@@ -445,8 +445,8 @@ JS
$fScale = min($iMaxImageSize / $iWidth, $iMaxImageSize / $iHeight);
$iNewWidth = $iWidth * $fScale;
$iNewHeight = $iHeight * $fScale;
$iNewWidth = (int) ($iWidth * $fScale);
$iNewHeight = (int) ($iHeight * $fScale);
$aDimensions['width'] = $iNewWidth;
$aDimensions['height'] = $iNewHeight;