From 5bb90d5cdbd04ce98eb39b51acd64e2f87a84be6 Mon Sep 17 00:00:00 2001 From: pranshukharkwal Date: Tue, 20 Apr 2021 16:31:09 +0530 Subject: [PATCH] libcupsfilters: Remove support for asymmetric ppi in imagesto... filter functions() --- cupsfilters/imagetopdf.c | 4 ++-- cupsfilters/imagetops.c | 4 ++-- cupsfilters/imagetoraster.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cupsfilters/imagetopdf.c b/cupsfilters/imagetopdf.c index 19b30e526..fde4b6fdb 100644 --- a/cupsfilters/imagetopdf.c +++ b/cupsfilters/imagetopdf.c @@ -983,8 +983,8 @@ imagetopdf(int inputfd, /* I - File descriptor input stream */ if ((val = cupsGetOption("ppi", num_options, options)) != NULL) { - if (sscanf(val, "%dx%d", &xppi, &yppi) < 2) - yppi = xppi; + sscanf(val, "%d", &xppi); + yppi = xppi; zoom = 0.0; } diff --git a/cupsfilters/imagetops.c b/cupsfilters/imagetops.c index bbef8d708..aa6068161 100644 --- a/cupsfilters/imagetops.c +++ b/cupsfilters/imagetops.c @@ -350,8 +350,8 @@ imagetops(int inputfd, /* I - File descriptor input stream */ if ((val = cupsGetOption("ppi", num_options, options)) != NULL) { - if (sscanf(val, "%dx%d", &xppi, &yppi) < 2) - yppi = xppi; + sscanf(val, "%d", &xppi); + yppi = xppi; zoom = 0.0; } diff --git a/cupsfilters/imagetoraster.c b/cupsfilters/imagetoraster.c index f541ec37c..9ecd44675 100644 --- a/cupsfilters/imagetoraster.c +++ b/cupsfilters/imagetoraster.c @@ -419,8 +419,8 @@ imagetoraster(int inputfd, /* I - File descriptor input stream */ if ((val = cupsGetOption("ppi", num_options, options)) != NULL) { - if (sscanf(val, "%dx%d", &xppi, &yppi) < 2) - yppi = xppi; + sscanf(val, "%d", &xppi); + yppi = xppi; zoom = 0.0; } -- 2.47.3