diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-02-12 18:43:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-02-12 18:43:28 +0000 |
commit | 0e0c5e8fd22eaaeb6467a0f0bb51c28b22d1cf2e (patch) | |
tree | 6d8ad4ebaff35e36b85bbe5c2e109a908d7ddfee | |
parent | 75427b7f2f167567bd8a3429c4623b879aad8f96 (diff) | |
download | netpbm-mirror-0e0c5e8fd22eaaeb6467a0f0bb51c28b22d1cf2e.tar.gz netpbm-mirror-0e0c5e8fd22eaaeb6467a0f0bb51c28b22d1cf2e.tar.xz netpbm-mirror-0e0c5e8fd22eaaeb6467a0f0bb51c28b22d1cf2e.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1640 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/pstopnm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/converter/other/pstopnm.c b/converter/other/pstopnm.c index 60ea2452..9af1f83d 100644 --- a/converter/other/pstopnm.c +++ b/converter/other/pstopnm.c @@ -149,11 +149,11 @@ parseCommandLine(int argc, char ** argv, } else cmdlineP->ysize = 0; - if (portrait_opt & !landscape_opt) + if (portrait_opt && !landscape_opt) cmdlineP->orientation = PORTRAIT; - else if (!portrait_opt & landscape_opt) + else if (!portrait_opt && landscape_opt) cmdlineP->orientation = LANDSCAPE; - else if (!portrait_opt & !landscape_opt) + else if (!portrait_opt && !landscape_opt) cmdlineP->orientation = UNSPECIFIED; else pm_error("Cannot specify both -portrait and -landscape options"); |