r23933 by jghali - Code cleanup
scribus-commit
scribus-commit at lists.scribus.net
Mon Jul 20 05:05:43 UTC 2020
Author: jghali
Date: Mon Jul 20 05:05:43 2020
New Revision: 23933
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23933
Log:
Code cleanup
Modified:
trunk/Scribus/scribus/pdflib_core.cpp
Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23933&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Mon Jul 20 05:05:43 2020
@@ -10696,14 +10696,16 @@
PutDoc("/Height " + Pdf::toPdf(img.height()) + "\n");
enum PDFOptions::PDFCompression compress_method = Options.CompressMethod;
enum PDFOptions::PDFCompression cm = Options.CompressMethod;
- bool exportToCMYK = false, exportToGrayscale = false, jpegUseOriginal = false;
+ bool exportToCMYK = false;
+ bool exportToGrayscale = false;
+ bool jpegUseOriginal = false;
if (!Options.UseRGB && !(doc.HasCMS && Options.UseProfiles2 && !realCMYK))
{
exportToGrayscale = Options.isGrayscale;
if (exportToGrayscale)
- exportToCMYK = !Options.isGrayscale;
+ exportToCMYK = !Options.isGrayscale;
else
- exportToCMYK = !Options.UseRGB;
+ exportToCMYK = !Options.UseRGB;
}
if (item->OverrideCompressionMethod)
compress_method = cm = (enum PDFOptions::PDFCompression) item->CompressionMethodIndex;
More information about the scribus-commit
mailing list