[evince] Fix page index argument when command is spawned



commit c96c8c67c27914df66501f54c2295a0b681b9eb8
Author: Ron Yorston <rmy pobox com>
Date:   Thu Jan 26 11:24:51 2012 +0000

    Fix page index argument when command is spawned
    
    https://bugzilla.gnome.org/show_bug.cgi?id=668736

 shell/ev-application.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/shell/ev-application.c b/shell/ev-application.c
index 6e61721..37bc808 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -259,8 +259,8 @@ ev_spawn (const char     *uri,
 		if (page_label)
 			g_string_append_printf (cmd, " --page-label=%s", page_label);
 		else
-			g_string_append_printf (cmd, " --page-label=%d",
-						ev_link_dest_get_page (dest));
+			g_string_append_printf (cmd, " --page-index=%d",
+						ev_link_dest_get_page (dest) + 1);
 	}
 
 	/* Find string */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]