summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/dvi/mdvi-lib/dviread.c2
-rw-r--r--libview/ev-view-presentation.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/backend/dvi/mdvi-lib/dviread.c b/backend/dvi/mdvi-lib/dviread.c
index 44005117..dbb4abbb 100644
--- a/backend/dvi/mdvi-lib/dviread.c
+++ b/backend/dvi/mdvi-lib/dviread.c
@@ -614,8 +614,6 @@ int mdvi_configure(DviContext *dvi, DviParamCode option, ...)
return -1;
if(np.mag <= 0.0)
return -1;
- if(np.density < 0)
- return -1;
if(np.hshrink < 1 || np.vshrink < 1)
return -1;
if(np.hdrift < 0 || np.vdrift < 0)
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);