diff options
-rw-r--r-- | cups/gdevcups.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cups/gdevcups.c b/cups/gdevcups.c index 065088134..c1574f860 100644 --- a/cups/gdevcups.c +++ b/cups/gdevcups.c | |||
@@ -3859,6 +3859,11 @@ cups_put_params(gx_device *pdev, /* I - Device info */ | |||
3859 | pdev->HWResolution[1] / 72.0f + 0.499f; | 3859 | pdev->HWResolution[1] / 72.0f + 0.499f; |
3860 | } | 3860 | } |
3861 | 3861 | ||
3862 | if (width <= 0 || height <= 0) { | ||
3863 | dmprintf(pdev->memory, "ERROR: page margins overlap\n"); | ||
3864 | return_error(gs_error_rangecheck); | ||
3865 | } | ||
3866 | |||
3862 | #ifdef CUPS_RASTER_SYNCv1 | 3867 | #ifdef CUPS_RASTER_SYNCv1 |
3863 | if (cups->header.cupsBorderlessScalingFactor > 1.0) | 3868 | if (cups->header.cupsBorderlessScalingFactor > 1.0) |
3864 | { | 3869 | { |