utils/pdftoppm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 0cb07d645527f25997f5e1b104a6be92441d8ffa Author: Albert Astals Cid <[email protected]> Date: Thu Feb 18 23:27:20 2010 +0000 Only swap w with h if rotation is 90 or 270 diff --git a/utils/pdftoppm.cc b/utils/pdftoppm.cc index e5d3ba0..5b318be 100644 --- a/utils/pdftoppm.cc +++ b/utils/pdftoppm.cc @@ -18,7 +18,7 @@ // Copyright (C) 2009 Michael K. Johnson <[email protected]> // Copyright (C) 2009 Shen Liang <[email protected]> // Copyright (C) 2009 Stefan Thomas <[email protected]> -// Copyright (C) 2009 Albert Astals Cid <[email protected]> +// Copyright (C) 2009, 2010 Albert Astals Cid <[email protected]> // Copyright (C) 2010 Adrian Johnson <[email protected]> // // To see a description of the changes please see the Changelog file that @@ -308,7 +308,7 @@ int main(int argc, char *argv[]) { } pg_w = pg_w * (x_resolution / 72.0); pg_h = pg_h * (y_resolution / 72.0); - if (doc->getPageRotate(pg)) { + if ((doc->getPageRotate(pg) == 90) || (doc->getPageRotate(pg) == 270)) { tmp = pg_w; pg_w = pg_h; pg_h = tmp; _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
