r23878 by jghali - Remove now useless trick: print dialog has enabled user to use GDI even for PostScript printers since a long time

scribus-commit scribus-commit at lists.scribus.net
Thu Jun 4 16:10:16 UTC 2020


Author: jghali
Date: Thu Jun  4 16:10:16 2020
New Revision: 23878

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23878
Log:
Remove now useless trick: print dialog has enabled user to use GDI even for PostScript printers since a long time

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23878&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp	(original)
+++ trunk/Scribus/scribus/scribus.cpp	Thu Jun  4 16:10:16 2020
@@ -4592,16 +4592,10 @@
 	ScCore->fileWatcher->stop();
 	ScPrintEngine* prnEngine = nullptr;
 #if defined(_WIN32)
-	SHORT shiftState = GetKeyState( VK_SHIFT );
-	bool  forceGDI = ( shiftState & 0x8000 ) ? true : false;
 	if (doc->Print_Options.toFile)
 		prnEngine = dynamic_cast<ScPrintEngine*>(new ScPrintEngine_PS(*doc));
 	else
-	{
-		ScPrintEngine_GDI* gdiEngine = new ScPrintEngine_GDI(*doc);
-		gdiEngine->setForceGDI( forceGDI );
-		prnEngine = dynamic_cast<ScPrintEngine*>(gdiEngine);
-	}
+		prnEngine = dynamic_cast<ScPrintEngine*>(new ScPrintEngine_GDI(*doc));
 #else
 	prnEngine = dynamic_cast<ScPrintEngine*>(new ScPrintEngine_PS(*doc));
 #endif




More information about the scribus-commit mailing list