ImageComponent: Can't make a qreal undefined

Using -1 because MediaSizeHelper is already handling negative numbers as
such.
This commit is contained in:
Aleix Pol
2025-06-14 02:29:11 +02:00
parent d3a2da391d
commit 7654333ec1

View File

@@ -187,7 +187,7 @@ Item {
MediaSizeHelper {
id: mediaSizeHelper
contentMaxWidth: root.Message.maxContentWidth
contentMaxHeight: root.contentMaxHeight
contentMaxHeight: root.contentMaxHeight ?? -1
mediaWidth: root?.mediaInfo.isSticker ? 256 : (root?.mediaInfo.width ?? 0)
mediaHeight: root?.mediaInfo.isSticker ? 256 : (root?.mediaInfo.height ?? 0)
}