mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Ensure svg icons generated by svgimageprovider have a reasonable default size
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
8d025a0d9d
commit
04e1736616
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,10 @@ namespace Ui {
|
|||
return {};
|
||||
}
|
||||
|
||||
if (size != nullptr && (size->width() <= 0 || size->height() <= 0)) {
|
||||
*size = QSize(64, 64);
|
||||
}
|
||||
|
||||
return IconUtils::createSvgImageWithCustomColor(pixmapName, pixmapColor, size, requestedSize);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue