Skip to content

Commit

Permalink
Merge pull request #3122 from gbabin/InitializeImageWidth
Browse files Browse the repository at this point in the history
Initialize imageWidth
  • Loading branch information
pbek authored Oct 4, 2024
2 parents 5b079f7 + 09a9d8a commit 485ed34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1946,7 +1946,7 @@ void Utils::Misc::transformNextcloudPreviewImages(QString &html, int maxImageWid
QRegularExpressionMatch match = i.next();
const QString imageTag = match.captured(0);
QString inlineImageTag;
int imageWidth;
int imageWidth = maxImageWidth;
ExternalImageHashItem hashItem;

if (externalImageHash->contains(imageTag)) {
Expand Down Expand Up @@ -1985,7 +1985,7 @@ void Utils::Misc::transformRemotePreviewImages(QString &html, int maxImageWidth,
QRegularExpressionMatch match = i.next();
QString imageTag = match.captured(0);
QString inlineImageTag;
int imageWidth;
int imageWidth = maxImageWidth;
ExternalImageHashItem hashItem;

if (externalImageHash->contains(imageTag)) {
Expand Down

0 comments on commit 485ed34

Please sign in to comment.