diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-14 18:51:38 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-14 18:51:38 +0300 |
commit | cea1716969423adfe2084b6e7462d714c2680f6d (patch) | |
tree | 273399f5272be1048e0f3a233f61ea242ec1b18f /src | |
parent | fb186be3c6527e1467055b0d20bf49b4fe441c7f (diff) |
DocumentWidget: Fixed media type checking
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/documentwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 8b2d6a5a..0def691d 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -576,7 +576,7 @@ static void addVisible_DocumentWidget_(void *context, const iGmRun *run) { | |||
576 | } | 576 | } |
577 | } | 577 | } |
578 | /* Image runs are static so they're drawn as part of the content. */ | 578 | /* Image runs are static so they're drawn as part of the content. */ |
579 | if (run->mediaType && run->mediaType != image_MediaType) { | 579 | if (isMedia_GmRun(run) && run->mediaType != image_MediaType) { |
580 | iAssert(run->mediaId); | 580 | iAssert(run->mediaId); |
581 | pushBack_PtrArray(&d->visibleMedia, run); | 581 | pushBack_PtrArray(&d->visibleMedia, run); |
582 | } | 582 | } |