diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-12-28 19:02:39 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-12-28 19:02:39 +0000 |
commit | 044d6d1f1f1364b5502a9a0a255f4d5b4160ef8c (patch) | |
tree | 721ff67b87062ea360d56903bb8edd214415534c /converter | |
parent | 51ffbae51ba9379bad460566cdf9babaa63b14c3 (diff) | |
download | netpbm-mirror-044d6d1f1f1364b5502a9a0a255f4d5b4160ef8c.tar.gz netpbm-mirror-044d6d1f1f1364b5502a9a0a255f4d5b4160ef8c.tar.xz netpbm-mirror-044d6d1f1f1364b5502a9a0a255f4d5b4160ef8c.zip |
Release 10.65.01
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2086 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r-- | converter/other/pstopnm.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/converter/other/pstopnm.c b/converter/other/pstopnm.c index c0d6a4ee..d867b37b 100644 --- a/converter/other/pstopnm.c +++ b/converter/other/pstopnm.c @@ -548,20 +548,20 @@ computeOrientation(struct CmdlineInfo const cmdline, */ imageWidXel = imageWidPt; imageHgtXel = imageHgtPt; + } - if (imageHgtXel >= imageWidXel && cmdline.ymax >= cmdline.xmax) { - /* Both image and page are higher than wide, so no rotation */ - retval = PORTRAIT; - } else if (imageHgtXel < imageWidXel && - cmdline.ymax < cmdline.xmax) { - /* Both image and page are wider than high, so no rotation */ - retval = PORTRAIT; - } else { - /* Image and pixel have opposite aspect ratios, so rotate - for best fit. - */ - retval = LANDSCAPE; - } + if (imageHgtXel >= imageWidXel && cmdline.ymax >= cmdline.xmax) { + /* Both image and page are higher than wide, so no rotation */ + retval = PORTRAIT; + } else if (imageHgtXel < imageWidXel && + cmdline.ymax < cmdline.xmax) { + /* Both image and page are wider than high, so no rotation */ + retval = PORTRAIT; + } else { + /* Image and pixel have opposite aspect ratios, so rotate + for best fit. + */ + retval = LANDSCAPE; } } return retval; |