mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 15:04:57 +01:00
Fix compiler warnings
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
f2ed53aa72
commit
0e3efe0504
1 changed files with 2 additions and 2 deletions
4
utils.c
4
utils.c
|
@ -258,11 +258,11 @@ set_adjustment(GtkAdjustment* adjustment, gdouble value)
|
||||||
double
|
double
|
||||||
page_calc_height_width(zathura_page_t* page, unsigned int* page_height, unsigned int* page_width, bool rotate)
|
page_calc_height_width(zathura_page_t* page, unsigned int* page_height, unsigned int* page_width, bool rotate)
|
||||||
{
|
{
|
||||||
g_return_if_fail(page != NULL && page_height != NULL && page_width != NULL);
|
g_return_val_if_fail(page != NULL && page_height != NULL && page_width != NULL, 0.0);
|
||||||
|
|
||||||
zathura_document_t* document = zathura_page_get_document(page);
|
zathura_document_t* document = zathura_page_get_document(page);
|
||||||
if (document == NULL) {
|
if (document == NULL) {
|
||||||
return;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
double height = zathura_page_get_height(page);
|
double height = zathura_page_get_height(page);
|
||||||
|
|
Loading…
Reference in a new issue