RHEL-29726 Backport fix for typo influencing image filtering from CMYK to CMY

Resolves: RHEL-29726
This commit is contained in:
Zdenek Dohnal 2024-03-20 15:50:18 +01:00
parent 25bfb6dd2b
commit d608b65a7c
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From c3a997fa8940c1bf8dd336e4e4febc759f1360c1 Mon Sep 17 00:00:00 2001
From: Till Kamppeter <till.kamppeter@gmail.com>
Date: Fri, 1 Dec 2023 01:25:12 +0100
Subject: [PATCH] cfImageCMYKToCMY(): Fixed copy-and-paste error
Fixes #41
---
cupsfilters/image-colorspace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cupsfilters/image-colorspace.c b/cupsfilters/image-colorspace.c
index 89687d15..e2164665 100644
--- a/cupsfilters/image-colorspace.c
+++ b/cupsfilters/image-colorspace.c
@@ -237,7 +237,7 @@ cfImageCMYKToCMY(
*out++ = 255;
if (m < 255)
- *out++ = y;
+ *out++ = m;
else
*out++ = 255;
--
2.43.2

View File

@ -17,6 +17,8 @@ Source0: %{URL}/releases/download/%{version}/%{name}-%{version}.tar.gz
# Patches
# RHEL-26148 - fix grayscale/color raster printing via AirPrint
Patch001: libcf-color-raster-printing.patch
# RHEL-29726 Backport fix for typo influencing image filtering from CMYK to CMY
Patch002: 0001-cfImageCMYKToCMY-Fixed-copy-and-paste-error.patch
# for generating configure and Makefile scripts in autogen.h
@ -196,6 +198,7 @@ rm -f %{buildroot}%{_pkgdocdir}/{LICENSE,COPYING,NOTICE}
%changelog
* Wed Mar 20 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-6
- RHEL-26148 - fix grayscale/color raster printing via AirPrint
- RHEL-29726 Backport fix for typo influencing image filtering from CMYK to CMY
* Mon Jan 29 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild