Reposting here my post to the gnome bug but as a patch against evince
2.26.1-0ubuntu1

I have a really simple fix for this. In export_print_page in
ev-print-operation.c:

REPLACE:

while ((export->page_set == GTK_PAGE_SET_EVEN && export->page % 2 == 0) ||
(export->page_set == GTK_PAGE_SET_ODD && export->page % 2 == 1));

WITH:

while((export->page_set == GTK_PAGE_SET_EVEN && (export->page /
export->pages_per_sheet) % 2 == 0) ||
(export->page_set == GTK_PAGE_SET_ODD && (export->page /
export->pages_per_sheet) % 2 == 1));

This way we check for even/odd sheets rather than pages in doing the pagination
and nothing else has to be changed in the code.

ISSUES:
Is the integer division guaranteed portable?
Is pages_per_sheet guaranteed to be non-zero?
Will this interfere with duplex printing if the hardware supports native
duplex?


** Attachment added: "patch against evince 2.26.1-0ubuntu1 to use sheets not 
pages"
   http://launchpadlibrarian.net/26930803/sheetsnotpages.patch

-- 
Multipage printing issue using even and odd.
https://bugs.launchpad.net/bugs/107025
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to