mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 05:55:59 +03:00
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:
commit
559fd910d8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue