mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°7552 - Fix implicit float to int conversion when uploading inline images
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user