From 7654333ec1fd21a6c375d7e73909b5f98e66182c Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Sat, 14 Jun 2025 02:29:11 +0200 Subject: [PATCH] ImageComponent: Can't make a qreal undefined Using -1 because MediaSizeHelper is already handling negative numbers as such. --- src/timeline/ImageComponent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeline/ImageComponent.qml b/src/timeline/ImageComponent.qml index bed8921dc..e157a85df 100644 --- a/src/timeline/ImageComponent.qml +++ b/src/timeline/ImageComponent.qml @@ -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) }