Skip to content
Snippets Groups Projects
Verified Commit 8d52c17f authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Work around images with size 0 in info

fixes #875
parent 970ed56f
No related branches found
No related tags found
No related merge requests found
Pipeline #2474 passed
......@@ -48,8 +48,8 @@ Item {
smooth: true
mipmap: true
sourceSize.width: Math.min(Screen.desktopAvailableWidth, originalWidth || undefined) * Screen.devicePixelRatio
sourceSize.height: Math.min(Screen.desktopAvailableHeight, originalWidth*proportionalHeight || undefined) * Screen.devicePixelRatio
sourceSize.width: Math.min(Screen.desktopAvailableWidth, originalWidth < 1 ? Screen.desktopAvailableWidth : originalWidth) * Screen.devicePixelRatio
sourceSize.height: Math.min(Screen.desktopAvailableHeight, (originalWidth < 1 ? Screen.desktopAvailableHeight : originalWidth*proportionalHeight)) * Screen.devicePixelRatio
}
MxcAnimatedImage {
......
......@@ -30,6 +30,9 @@ MxcImageProvider::requestImageResponse(const QString &id, const QSize &requested
double radius = 0;
auto size = requestedSize;
if (requestedSize.width() == 0 && requestedSize.height() == 0)
size = QSize();
auto queryStart = id.lastIndexOf('?');
if (queryStart != -1) {
id_ = id.left(queryStart);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment