diff options
-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"); |