Commit 7e14516a authored by Sanjoy Mahajan's avatar Sanjoy Mahajan Committed by Albert Astals Cid

Fix displayPages call

Parameters are outputdev, first, last, dpi, dpi, rotate, usemediabox, crop, printing
and we were doing
usemediabox = !noCrop
crop = gFasle
the correct is
usemediabox = noCrop
crop = !noCrop
parent 3d53a0eb
......@@ -18,6 +18,7 @@
// Copyright (C) 2006 Kristian Høgsberg <krh@redhat.com>
// Copyright (C) 2007-2008 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2009 Till Kamppeter <till.kamppeter@gmail.com>
// Copyright (C) 2009 Sanjoy Mahajan <sanjoy@mit.edu>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
......@@ -348,7 +349,7 @@ int main(int argc, char *argv[]) {
duplex);
if (psOut->isOk()) {
doc->displayPages(psOut, firstPage, lastPage, 72, 72,
0, !noCrop, gFalse, gTrue);
0, noCrop, !noCrop, gTrue);
} else {
delete psOut;
exitCode = 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment