From 0e0c5e8fd22eaaeb6467a0f0bb51c28b22d1cf2e Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 12 Feb 2012 18:43:28 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1640 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/pstopnm.c | 6 +++--- 1 file 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"); -- cgit 1.4.1