From 0fc8cca3efee54fc087eb96eafa948c671027f7f Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Wed, 12 May 2021 13:53:22 +0200 Subject: [PATCH] Add missing brackets to if statement body --- src/entry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/entry.cpp b/src/entry.cpp index 92e0048f..4c3b087f 100644 --- a/src/entry.cpp +++ b/src/entry.cpp @@ -175,9 +175,10 @@ QString Entry::adjustedContent(int width, int fontSize) QString widthParameter = match.captured(4); if (widthParameter.length() != 0) { - if (widthParameter.toInt() > width) + if (widthParameter.toInt() > width) { imgTag.replace(match.captured(3), QStringLiteral("width=\"%1\"").arg(width)); imgTag.replace(QRegularExpression(QStringLiteral("height=\"([0-9]+)(px)?\"")), QString()); + } } else { imgTag.insert(4, QStringLiteral(" width=\"%1\"").arg(width)); }