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:
Claudio Cambra 2024-06-06 17:51:07 +08:00
parent 8d025a0d9d
commit 04e1736616

View file

@ -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);
}
}