diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-06-28 02:25:06 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-06-28 02:25:06 +0000 |
commit | 3be1029c5d1e62ae6f243e62d0853ca3f17ba0da (patch) | |
tree | be65a8712ec43472898cacff81bfe9b382aba56d | |
parent | 42f26661aef4474a07544cf24187e00f204d1023 (diff) | |
download | netpbm-mirror-3be1029c5d1e62ae6f243e62d0853ca3f17ba0da.tar.gz netpbm-mirror-3be1029c5d1e62ae6f243e62d0853ca3f17ba0da.tar.xz netpbm-mirror-3be1029c5d1e62ae6f243e62d0853ca3f17ba0da.zip |
More 10.82.03
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3283 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/pstopnm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/converter/other/pstopnm.c b/converter/other/pstopnm.c index 94219c2c..95a97440 100644 --- a/converter/other/pstopnm.c +++ b/converter/other/pstopnm.c @@ -1037,6 +1037,11 @@ main(int argc, char ** argv) { borderedBox = addBorders(extractBox, cmdline.xborder, cmdline.yborder); computeSizeRes(cmdline, borderedBox, &imageDim); + + if (imageDim.xres == 0) + imageDim.xres = 1; + if (imageDim.yres == 0) + imageDim.yres = 1; outfileArg = computeOutfileArg(cmdline); |