aboutsummaryrefslogtreecommitdiffstats
path: root/core/avatar
diff options
context:
space:
mode:
Diffstat (limited to 'core/avatar')
-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 f63e02b7761..0aefc336eeb 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);