GNOME Bugzilla – Bug 131343
Page misplaced when printing or print-previewing a multipage landscape sheet
Last modified: 2005-08-15 01:37:18 UTC
When printing or previewing this file: http://bzzt.net/~arnouten/rekening.gnumeric the output is misplaced like this: http://bzzt.net/~arnouten/gnumeric_mispositioned.jpg To reproduce: * started gnumeric as: $ gnumeric rekening.gnumeric * click File->Print... * choose 'Paper' tab * set 'Page orientation' to 'Landscape' * hit 'Print preview' (this is the point where i took the screenshot at http://www.bzzt.net/~arnouten/gnumeric_mispositioned.jpg) * close 'print preview window' * click File->Print... * choose 'Paper' tab Now, the 'Page orientation' is set to 'Portrait'. This is different from what i had seen so far. Before, 'Page orientation' would still be on 'Landscape' at this point, and printing/previewing would work correctly the second time around.
Misplaced is not quite the correct term: we are rendering the page in portrait into a preview expecting landscape or so it seems. I can replicate this in cvs HEAD (and assume the same problem can be replicated in gnome-1-2) and will have a look at this. You can avoid the problem by setting the page orientation in the page-setup dialog before trying to print.
Adding the screenshot keyword.
Looking at the code this is not very surprising. We are calculating the page breaks already before we present the print dialog (based on the paper size determined in the pagesetup dialog). This should be an easy fix... I'll do it when I get gtk+ to compile again.
Created attachment 23385 [details] [review] patch (already aplied to cvs HEAD, to be backported)
fixed in cvs head. I wil backport it later today.
backported to 1.2.x