diff options
Diffstat (limited to 'devices/gdevtifs.c')
-rw-r--r-- | devices/gdevtifs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/devices/gdevtifs.c b/devices/gdevtifs.c index 10487aa33..017153199 100644 --- a/devices/gdevtifs.c +++ b/devices/gdevtifs.c @@ -101,9 +101,11 @@ tiff_get_some_params(gx_device * dev, gs_param_list * plist, int which) ecode = code; if ((code = param_write_long(plist, "AdjustWidth", &tfdev->AdjustWidth)) < 0) ecode = code; - if ((code = gx_downscaler_write_params(plist, &tfdev->downscale, - GX_DOWNSCALER_PARAMS_MFS | (which & 2 ? GX_DOWNSCALER_PARAMS_TRAP : 0))) < 0) - ecode = code; + if (which & 1) { + if ((code = gx_downscaler_write_params(plist, &tfdev->downscale, + GX_DOWNSCALER_PARAMS_MFS | (which & 2 ? GX_DOWNSCALER_PARAMS_TRAP : 0))) < 0) + ecode = code; + } return ecode; } |