diff --git a/src/MxcImageProvider.cpp b/src/MxcImageProvider.cpp index 0dc96e5a..cd7e3946 100644 --- a/src/MxcImageProvider.cpp +++ b/src/MxcImageProvider.cpp @@ -169,9 +169,9 @@ MxcImageProvider::download(const QString &id, mtx::http::ThumbOpts opts; opts.mxc_url = "mxc://" + id.toStdString(); - opts.width = static_cast(requestedSize.width() > 0 ? requestedSize.width() : -1); + opts.width = static_cast(requestedSize.width() > 0 ? requestedSize.width() : -1); opts.height = - static_cast(requestedSize.height() > 0 ? requestedSize.height() : -1); + static_cast(requestedSize.height() > 0 ? requestedSize.height() : -1); opts.method = crop ? "crop" : "scale"; http::client()->get_thumbnail( opts,