diff options
-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 | } |