ImageComponent: Can't make a qreal undefined
Using -1 because MediaSizeHelper is already handling negative numbers as such.
This commit is contained in:
@@ -187,7 +187,7 @@ Item {
|
|||||||
MediaSizeHelper {
|
MediaSizeHelper {
|
||||||
id: mediaSizeHelper
|
id: mediaSizeHelper
|
||||||
contentMaxWidth: root.Message.maxContentWidth
|
contentMaxWidth: root.Message.maxContentWidth
|
||||||
contentMaxHeight: root.contentMaxHeight
|
contentMaxHeight: root.contentMaxHeight ?? -1
|
||||||
mediaWidth: root?.mediaInfo.isSticker ? 256 : (root?.mediaInfo.width ?? 0)
|
mediaWidth: root?.mediaInfo.isSticker ? 256 : (root?.mediaInfo.width ?? 0)
|
||||||
mediaHeight: root?.mediaInfo.isSticker ? 256 : (root?.mediaInfo.height ?? 0)
|
mediaHeight: root?.mediaInfo.isSticker ? 256 : (root?.mediaInfo.height ?? 0)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user