summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/avatar/avatarcontroller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/avatar/avatarcontroller.php b/core/avatar/avatarcontroller.php
index b63c8ad53b5..767013e8db0 100644
--- a/core/avatar/avatarcontroller.php
+++ b/core/avatar/avatarcontroller.php
@@ -244,7 +244,7 @@ class AvatarController extends Controller {
}
$image = new \OC_Image($tmpAvatar);
- $image->crop($crop['x'], $crop['y'], $crop['w'], $crop['h']);
+ $image->crop($crop['x'], $crop['y'], round($crop['w']), round($crop['h']));
try {
$avatar = $this->avatarManager->getAvatar($userId);
$avatar->set($image);