mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:16:00 +01:00
Fix segmentation fault in cb_pages_per_row_value_changed
This commit is contained in:
parent
5dacede692
commit
5c09bdd5e2
1 changed files with 5 additions and 2 deletions
|
@ -110,9 +110,12 @@ cb_pages_per_row_value_changed(girara_session_t* session, const char* UNUSED(nam
|
||||||
pages_per_row = 1;
|
pages_per_row = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int current_page = zathura->document->current_page_number;
|
|
||||||
page_widget_set_mode(zathura, pages_per_row);
|
page_widget_set_mode(zathura, pages_per_row);
|
||||||
page_set_delayed(zathura, current_page);
|
|
||||||
|
if (zathura->document != NULL) {
|
||||||
|
unsigned int current_page = zathura->document->current_page_number;
|
||||||
|
page_set_delayed(zathura, current_page);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue