From e0b7aa680c669c417c5c507648276342ba7d4600 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Sat, 17 Apr 2021 15:47:51 +0200 Subject: [PATCH] Remove one Qt 5.15 ifdef GIT_SILENT --- src/plasma/svg.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/plasma/svg.cpp b/src/plasma/svg.cpp index 705ce407a..776735270 100644 --- a/src/plasma/svg.cpp +++ b/src/plasma/svg.cpp @@ -710,15 +710,8 @@ QRectF SvgPrivate::findAndCacheElementRect(const QString &elementId) createRenderer(); // This code will usually never be run because createRenderer already caches all the boundingRect in the elements in the svg - QRectF elementRect = renderer->elementExists(elementId) ? -#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) - renderer->transformForElement(elementId).map(renderer->boundsOnElement(elementId)).boundingRect() - : -#else - renderer->matrixForElement(elementId).map(renderer->boundsOnElement(elementId)).boundingRect() - : -#endif - QRectF(); + QRectF elementRect = + renderer->elementExists(elementId) ? renderer->transformForElement(elementId).map(renderer->boundsOnElement(elementId)).boundingRect() : QRectF(); naturalSize = renderer->defaultSize() * scaleFactor; qreal dx = size.width() / renderer->defaultSize().width();