Update launcher/ui/widgets/VariableSizedImageObject.cpp

Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
This commit is contained in:
Alexandru Ionut Tripon 2024-04-26 22:04:50 +03:00 committed by GitHub
parent c902da4461
commit 3c9a207192
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,7 @@ QSizeF VariableSizedImageObject::intrinsicSize(QTextDocument* doc, int posInDocu
auto image = qvariant_cast<QImage>(format.property(ImageData)); auto image = qvariant_cast<QImage>(format.property(ImageData));
auto size = image.size(); auto size = image.size();
if (size.isEmpty()) // can't resize a empty image if (size.isEmpty()) // can't resize an empty image
return { size }; return { size };
// calculate the new image size based on the properties // calculate the new image size based on the properties