r22431 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Tue Mar 13 18:37:26 UTC 2018
Author: jghali
Date: Tue Mar 13 18:37:26 2018
New Revision: 22431
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22431
Log:
#15190: Exporting PDF to grayscale is broken in 1.5.4.svn
Modified:
trunk/Scribus/scribus/pdflib_core.cpp
Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22431&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Tue Mar 13 18:37:26 2018
@@ -5851,7 +5851,7 @@
kToGray = (h == 0 && s == 0 && v == 0);
}
if (kToGray)
- tmp = FToStr(1.0 - k / 255.0);
+ tmp = FToStr(1.0 - k);
else
{
ScColorEngine::getShadeColorRGB(tmpC, &doc, rgb, Shade);
More information about the scribus-commit
mailing list