mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 17:04:56 +01:00
Fix the segfault that happens when jumping while the jumplist is initially empty.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
5b7fc5de5f
commit
8549abaa95
1 changed files with 1 additions and 0 deletions
|
@ -721,6 +721,7 @@ sc_jumplist(girara_session_t* session, girara_argument_t* argument,
|
|||
zathura_t* zathura = session->global.data;
|
||||
g_return_val_if_fail(argument != NULL, false);
|
||||
g_return_val_if_fail(zathura->document != NULL, false);
|
||||
g_return_val_if_fail(zathura->jumplist.size != 0, false);
|
||||
|
||||
const double scale = zathura_document_get_scale(zathura->document);
|
||||
double x = gtk_adjustment_get_value(gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(session->gtk.view))) / scale;
|
||||
|
|
Loading…
Reference in a new issue