зеркало из https://github.com/nextcloud/desktop.git
Prevent crash when originalSize is null
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com> [skip ci]
This commit is contained in:
Родитель
061149d9a0
Коммит
e2486226a7
|
@ -108,7 +108,7 @@ QImage createSvgImageWithCustomColor(const QString &fileName,
|
|||
return {};
|
||||
}
|
||||
|
||||
const auto sizeToUse = requestedSize.isValid() ? requestedSize : *originalSize;
|
||||
const auto sizeToUse = requestedSize.isValid() || originalSize == nullptr ? requestedSize : *originalSize;
|
||||
|
||||
// some icons are present in white or black only, so, we need to check both when needed
|
||||
const auto iconBaseColors = QStringList{QStringLiteral("black"), QStringLiteral("white")};
|
||||
|
|
Загрузка…
Ссылка в новой задаче