summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-10-28 20:55:17 +0000
committerManolo Gouy <Manolo>2011-10-28 20:55:17 +0000
commit1e88511efa6c12ed98d99f15ffc24ce7db37ff02 (patch)
tree3370e01fec60fc560de2e65e3155c66b61afbffe /src
parent8ff32e11d61b3ff161b0ebd8b354ffd5f665c2b0 (diff)
Fixed use of "landscape" orientation with PostScript printing/output.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9156 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_PostScript.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx
index a29d685ee..3234cef48 100644
--- a/src/Fl_PostScript.cxx
+++ b/src/Fl_PostScript.cxx
@@ -631,7 +631,7 @@ void Fl_PostScript_Graphics_Driver::page(double pw, double ph, int media) {
}
++nPages;
fprintf(output, "%%%%Page: %i %i\n" , nPages , nPages);
- fprintf(output, "%%%%PageBoundingBox: 0 0 %d %d\n", (int)pw, (int)ph);
+ fprintf(output, "%%%%PageBoundingBox: 0 0 %d %d\n", pw > ph ? (int)ph : (int)pw , pw > ph ? (int)pw : (int)ph);
if (pw>ph){
fprintf(output, "%%%%PageOrientation: Landscape\n");
}else{