mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:56:00 +01:00
More consts
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
660a3e7757
commit
45a997c88e
1 changed files with 2 additions and 2 deletions
|
@ -786,8 +786,8 @@ document_open(zathura_t* zathura, const char* path, const char* password,
|
||||||
/* adjust_view calls render_all in some cases and render_all calls
|
/* adjust_view calls render_all in some cases and render_all calls
|
||||||
* gtk_widget_set_size_request. To be sure that it's really called, do it
|
* gtk_widget_set_size_request. To be sure that it's really called, do it
|
||||||
* here once again. */
|
* here once again. */
|
||||||
double height = zathura_page_get_height(page);
|
const double height = zathura_page_get_height(page);
|
||||||
double width = zathura_page_get_width(page);
|
const double width = zathura_page_get_width(page);
|
||||||
page_calc_height_width(zathura->document, height, width, &page_height, &page_width, true);
|
page_calc_height_width(zathura->document, height, width, &page_height, &page_width, true);
|
||||||
gtk_widget_set_size_request(zathura->pages[page_id], page_width, page_height);
|
gtk_widget_set_size_request(zathura->pages[page_id], page_width, page_height);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue