[poppler] poppler/test: pdf-inspector.cc,1.2,1.3

Albert Astals Cid aacid at freedesktop.org
Tue Nov 22 13:50:47 PST 2005


Update of /cvs/poppler/poppler/test
In directory gabe:/tmp/cvs-serv30744/test

Modified Files:
	pdf-inspector.cc 
Log Message:
Fix page range in the inspector


Index: pdf-inspector.cc
===================================================================
RCS file: /cvs/poppler/poppler/test/pdf-inspector.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pdf-inspector.cc	30 Oct 2005 20:29:05 -0000	1.2
+++ pdf-inspector.cc	22 Nov 2005 21:50:44 -0000	1.3
@@ -292,7 +292,7 @@
       gtk_widget_set_sensitive (spin, TRUE);
       gtk_widget_set_sensitive (button, TRUE);
       gtk_widget_set_sensitive (label, TRUE);
-      gtk_spin_button_set_range (GTK_SPIN_BUTTON (spin), 0, doc->getNumPages());
+      gtk_spin_button_set_range (GTK_SPIN_BUTTON (spin), 0, doc->getNumPages()-1);
       gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), 0);
 
       output->startDoc (doc->getXRef());



More information about the poppler mailing list