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 {
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user