mirror of
https://github.com/KDE/kasts.git
synced 2025-01-23 13:50:44 +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);
|
QString widthParameter = match.captured(4);
|
||||||
|
|
||||||
if (widthParameter.length() != 0) {
|
if (widthParameter.length() != 0) {
|
||||||
if (widthParameter.toInt() > width)
|
if (widthParameter.toInt() > width) {
|
||||||
imgTag.replace(match.captured(3), QStringLiteral("width=\"%1\"").arg(width));
|
imgTag.replace(match.captured(3), QStringLiteral("width=\"%1\"").arg(width));
|
||||||
imgTag.replace(QRegularExpression(QStringLiteral("height=\"([0-9]+)(px)?\"")), QString());
|
imgTag.replace(QRegularExpression(QStringLiteral("height=\"([0-9]+)(px)?\"")), QString());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
imgTag.insert(4, QStringLiteral(" width=\"%1\"").arg(width));
|
imgTag.insert(4, QStringLiteral(" width=\"%1\"").arg(width));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user