summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/templates.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-29 13:32:33 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-29 13:32:33 +0300
commit4ff0acc120ea0334dc36c2f11adab478c92803a0 (patch)
treecc5e1e944df4da732abeb5650ed50d7ca3d26171 /plugins/NewStory/src/templates.cpp
parenta00c17f7006f7a001757cf952ae4ed87b5a328dd (diff)
fixes #4610 (NewStory: WebP pictures aren't shown)
Diffstat (limited to 'plugins/NewStory/src/templates.cpp')
-rw-r--r--plugins/NewStory/src/templates.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp
index e915e468ae..800d73b749 100644
--- a/plugins/NewStory/src/templates.cpp
+++ b/plugins/NewStory/src/templates.cpp
@@ -52,8 +52,8 @@ static void AppendImage(CMStringW &buf, const CMStringW &wszUrl, const CMStringW
int iHeight = uMaxHeight;
if (auto *pImage = pItem->pOwner->webPage.find_image(wszUrl)) {
- if (pImage->GetHeight() < uMaxHeight)
- iHeight = pImage->GetHeight();
+ if (FreeImage_GetHeight(pImage) < uMaxHeight)
+ iHeight = FreeImage_GetHeight(pImage);
buf.AppendFormat(L"<img style=\"height: %dpx;\" src=\"%s\"/><br>", iHeight, wszUrl.c_str());
}