diff options
Diffstat (limited to 'src/gempub.c')
-rw-r--r-- | src/gempub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gempub.c b/src/gempub.c index 23846414..952d72a1 100644 --- a/src/gempub.c +++ b/src/gempub.c | |||
@@ -337,7 +337,7 @@ iBool preloadCoverImage_Gempub(const iGempub *d, iGmDocument *doc) { | |||
337 | for (size_t linkId = 1; ; linkId++) { | 337 | for (size_t linkId = 1; ; linkId++) { |
338 | const iString *linkUrl = linkUrl_GmDocument(doc, linkId); | 338 | const iString *linkUrl = linkUrl_GmDocument(doc, linkId); |
339 | if (!linkUrl) break; | 339 | if (!linkUrl) break; |
340 | if (findLinkImage_Media(media_GmDocument(doc), linkId)) { | 340 | if (findLinkImage_Media(media_GmDocument(doc), linkId).type) { |
341 | continue; /* got this already */ | 341 | continue; /* got this already */ |
342 | } | 342 | } |
343 | if (linkFlags_GmDocument(doc, linkId) & imageFileExtension_GmLinkFlag) { | 343 | if (linkFlags_GmDocument(doc, linkId) & imageFileExtension_GmLinkFlag) { |