diff --git a/src/entry.cpp b/src/entry.cpp index a25a7b97..92e0048f 100644 --- a/src/entry.cpp +++ b/src/entry.cpp @@ -177,6 +177,7 @@ QString Entry::adjustedContent(int width, int fontSize) if (widthParameter.length() != 0) { 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)); }