+2005-01-13 Marco Pesenti Gritti <marco@gnome.org>
+
+ * ps/ps-document.c: (ps_document_goto_page):
+
+ Fix page switching on multipage documents
+
2005-01-12 Jeff Muizelaar <jrmuizel@nit.ca>
* pixbuf/pixbuf-document.c: (pixbuf_document_get_page_size):
if(gs->structured_doc)
return gs->doc->numpages;
else
- return 1;
+ return G_MAXINT;
}
else
return 0;
if(page < 0)
page = 0;
- ps_document_set_page_size(gs, -1, page);
-
if(gs->structured_doc && gs->doc) {
if(page >= gs->doc->numpages)
page = gs->doc->numpages - 1;
gs->changed = TRUE;
}
+ ps_document_set_page_size(gs, -1, page);
+
gs->changed = FALSE;
if(is_interpreter_ready(gs)) {
if(page == gs->current_page && !gs->changed)
return TRUE;
+ ps_document_set_page_size(gs, -1, page);
+
if(!is_interpreter_ready(gs))
ps_document_enable_interpreter(gs);