summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-28 12:12:01 +0100
committerraveit65 <[email protected]>2021-01-28 20:27:13 +0100
commitbe674c1c351e4eac855a36a3b853083bf0175c25 (patch)
tree6d155880ce69e5c1f8e8c5298a81f01efd6102fc /libview
parentfe353851db14e9ce3d3de50ee44ff275508585fb (diff)
downloadatril-be674c1c351e4eac855a36a3b853083bf0175c25.tar.bz2
atril-be674c1c351e4eac855a36a3b853083bf0175c25.tar.xz
Remove warning -Wtype-limits
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view-presentation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 0bcfe54d..c525e51f 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -425,7 +425,7 @@ ev_view_presentation_update_current_page (EvViewPresentation *pview,
{
gint jump;
- if (page < 0 || page >= ev_document_get_n_pages (pview->document))
+ if (page >= ev_document_get_n_pages (pview->document))
return;
ev_view_presentation_animation_cancel (pview);