mirror of
https://github.com/KDE/kasts.git
synced 2025-01-06 13:37:00 +01:00
Add missing brackets to if statement body
This commit is contained in:
parent
9cab7e605c
commit
0fc8cca3ef
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user