Merge pull request #801 from nextcloud/fix/generated_avatar_not_black

Use a format that supports alpha channels for avatars
This commit is contained in:
Roeland Jago Douma 2018-11-09 15:15:46 +01:00 committed by GitHub
commit 559fd910d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -649,7 +649,7 @@ QImage AvatarJob::makeCircularAvatar(const QImage &baseAvatar)
{
int dim = baseAvatar.width();
QImage avatar(dim, dim, baseAvatar.format());
QImage avatar(dim, dim, QImage::Format_ARGB32);
avatar.fill(Qt::transparent);
QPainter painter(&avatar);