r23080 by jghali - Try to not default on PostScript 1 when switching from a GDI printer to a Postscript printer in print dialog
scribus-commit
scribus-commit at lists.scribus.net
Sun Jul 14 18:52:07 UTC 2019
Author: jghali
Date: Sun Jul 14 18:52:07 2019
New Revision: 23080
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23080
Log:
Try to not default on PostScript 1 when switching from a GDI printer to a Postscript printer in print dialog
Modified:
trunk/Scribus/scribus/ui/printdialog.cpp
Modified: trunk/Scribus/scribus/ui/printdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23080&path=/trunk/Scribus/scribus/ui/printdialog.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/printdialog.cpp (original)
+++ trunk/Scribus/scribus/ui/printdialog.cpp Sun Jul 14 18:52:07 2019
@@ -716,7 +716,7 @@
void PrintDialog::refreshPrintEngineBox()
{
- int index = 0, oldPDLIndex = 0;
+ int index = 0, oldPDLIndex = -1;
QString oldPDL = printEngines->currentText();
PrintEngineMap::Iterator it, itEnd = printEngineMap.end();
printEngines->clear();
@@ -726,6 +726,14 @@
if (it.key() == oldPDL)
oldPDLIndex = index;
index++;
+ }
+ // Try to not default on PostScript 1 when switching
+ // from a GDI printer to a Postscript printer
+ if (oldPDLIndex < 0)
+ {
+ oldPDLIndex = printEngines->findText(CommonStrings::trPostScript3);
+ if (oldPDLIndex < 0)
+ oldPDLIndex = 0;
}
printEngines->setCurrentIndex(oldPDLIndex);
}
More information about the scribus-commit
mailing list