r23064 by jghali - Fix build error
scribus-commit
scribus-commit at lists.scribus.net
Mon Jul 1 19:59:38 UTC 2019
Author: jghali
Date: Mon Jul 1 19:59:38 2019
New Revision: 23064
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23064
Log:
Fix build error
Modified:
trunk/Scribus/scribus/scprintengine_gdi.cpp
Modified: trunk/Scribus/scribus/scprintengine_gdi.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23064&path=/trunk/Scribus/scribus/scprintengine_gdi.cpp
==============================================================================
--- trunk/Scribus/scribus/scprintengine_gdi.cpp (original)
+++ trunk/Scribus/scribus/scprintengine_gdi.cpp Mon Jul 1 19:59:38 2019
@@ -100,8 +100,8 @@
diaSelection = docName.right(docName.length() - docName.lastIndexOf("/") - 1);
diaSelection = diaSelection.left(diaSelection.indexOf("."));
diaSelection += ".prn";
- PrefsContext* dirs = PrefsManager::instance()->prefsFile->getContext("dirs");
- QString prefsDocDir = PrefsManager::instance()->documentDir();
+ PrefsContext* dirs = PrefsManager::instance().prefsFile->getContext("dirs");
+ QString prefsDocDir = PrefsManager::instance().documentDir();
if (!prefsDocDir.isEmpty())
docDir = dirs->get("winprn", prefsDocDir);
else
@@ -439,8 +439,8 @@
options2.pageNumbers.clear();
options2.pageNumbers.push_back(page->pageNr() + 1);
- tempFilePath = PrefsManager::instance()->preferencesLocation() + "/tmp.ps";
- PSLib *dd = new PSLib(options2, false, PrefsManager::instance()->appPrefs.fontPrefs.AvailFonts, usedFonts, usedColors, false, options2.useSpotColors);
+ tempFilePath = PrefsManager::instance().preferencesLocation() + "/tmp.ps";
+ PSLib *dd = new PSLib(options2, false, PrefsManager::instance().appPrefs.fontPrefs.AvailFonts, usedFonts, usedColors, false, options2.useSpotColors);
dd->PS_set_file(tempFilePath);
ret = dd->CreatePS(doc, options2);
delete dd;
@@ -450,7 +450,7 @@
{
QString tmp;
QStringList opts;
- QString tempFilePath2 = PrefsManager::instance()->preferencesLocation() + "/tmp2.ps";
+ QString tempFilePath2 = PrefsManager::instance().preferencesLocation() + "/tmp2.ps";
opts.append( QString("-dDEVICEWIDTHPOINTS=%1").arg(tmp.setNum(doc->pageWidth())));
opts.append( QString("-dDEVICEHEIGHTPOINTS=%1").arg(tmp.setNum(doc->pageHeight())));
if (QFile::exists(tempFilePath2))
More information about the scribus-commit
mailing list