Update launcher/ui/widgets/VariableSizedImageObject.cpp

Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
(cherry picked from commit 3c9a207192)
This commit is contained in:
Alexandru Ionut Tripon
2024-04-26 22:04:50 +03:00
committed by github-actions[bot]
parent 28378c77aa
commit d3a16715b8

View File

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