Don't crash the view when no image is present

This commit is contained in:
Přemysl Eric Janouch 2021-12-06 15:29:03 +01:00
parent 8e2958051d
commit 4b306b7c93
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ start_animating(FastivView *self)
stop_animating(self); stop_animating(self);
GdkFrameClock *clock = gtk_widget_get_frame_clock(GTK_WIDGET(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)) !cairo_surface_get_user_data(self->page, &fastiv_io_key_frame_next))
return; return;