mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-21 16:57:15 +02:00
Update launcher/ui/widgets/VariableSizedImageObject.cpp
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
c902da4461
commit
3c9a207192
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user