diff options
-rw-r--r-- | gs/devices/gdevdljm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/devices/gdevdljm.c b/gs/devices/gdevdljm.c index afb05376f..2ce992de1 100644 --- a/gs/devices/gdevdljm.c +++ b/gs/devices/gdevdljm.c | |||
@@ -139,7 +139,7 @@ dljet_mono_print_page_copies(gx_device_printer * pdev, FILE * prn_stream, | |||
139 | 139 | ||
140 | if ((features & PCL_HAS_DUPLEX) && dupset && dup) { | 140 | if ((features & PCL_HAS_DUPLEX) && dupset && dup) { |
141 | /* We are printing duplex, so change margins as needed */ | 141 | /* We are printing duplex, so change margins as needed */ |
142 | if ((pdev->PageCount%2)==0) { | 142 | if (( (pdev->PageCount/num_copies)%2)==0) { |
143 | if (features & PCL_CAN_SET_PAPER_SIZE) { | 143 | if (features & PCL_CAN_SET_PAPER_SIZE) { |
144 | fprintf(prn_stream, "\033&l%dA", paper_size); | 144 | fprintf(prn_stream, "\033&l%dA", paper_size); |
145 | } | 145 | } |