r20556 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sun Nov 15 21:20:28 UTC 2015


Author: jghali
Date: Sun Nov 15 21:20:28 2015
New Revision: 20556

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20556
Log:
cosmetic change in printer options handling code on Windows

Modified:
    trunk/Scribus/scribus/scprintengine_gdi.cpp

Modified: trunk/Scribus/scribus/scprintengine_gdi.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20556&path=/trunk/Scribus/scribus/scprintengine_gdi.cpp
==============================================================================
--- trunk/Scribus/scribus/scprintengine_gdi.cpp	(original)
+++ trunk/Scribus/scribus/scprintengine_gdi.cpp	Sun Nov 15 21:20:28 2015
@@ -622,20 +622,17 @@
 {
 	HANDLE handle;
 	QString printer = options.printer;
-	DWORD devFlags = devMode->dmFields;
 
 	short nCopies = options.copies;
-	devMode->dmCopies = nCopies;
-	devFlags  = devFlags | DM_COPIES;
+	devMode->dmCopies  = nCopies;
+	devMode->dmFields |= DM_COPIES;
 
 	bool greyscale = !options.useColor;
 	if (greyscale)
 	{
 		devMode->dmDitherType = DMDITHER_GRAYSCALE;
-		devFlags = devFlags | DM_DITHERTYPE;
-	}
-
-	devMode->dmFields = devFlags;
+		devMode->dmFields |= DM_DITHERTYPE;
+	}
 
 	OpenPrinterW((LPWSTR) printer.utf16(), &handle, NULL);
 	DocumentPropertiesW((HWND) doc->scMW()->winId(), handle, (LPWSTR) printer.utf16(), devMode, devMode, DM_IN_BUFFER | DM_OUT_BUFFER);




More information about the scribus-commit mailing list