From 4b306b7c936187245f01e0f948c22ca82e1c5288 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Mon, 6 Dec 2021 15:29:03 +0100 Subject: Don't crash the view when no image is present --- fastiv-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastiv-view.c b/fastiv-view.c index bd00f82..3f5ae73 100644 --- a/fastiv-view.c +++ b/fastiv-view.c @@ -504,7 +504,7 @@ start_animating(FastivView *self) stop_animating(self); GdkFrameClock *clock = gtk_widget_get_frame_clock(GTK_WIDGET(self)); - if (!clock || + if (!clock || !self->image || !cairo_surface_get_user_data(self->page, &fastiv_io_key_frame_next)) return; -- cgit v1.2.3-70-g09d2