r23849 by jghali - Write temporary PostScript files in temp file directory
scribus-commit
scribus-commit at lists.scribus.net
Fri May 29 00:05:21 UTC 2020
Author: jghali
Date: Fri May 29 00:05:21 2020
New Revision: 23849
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23849
Log:
Write temporary PostScript files in temp file directory
Modified:
trunk/Scribus/scribus/scprintengine_gdi.cpp
trunk/Scribus/scribus/scprintengine_ps.cpp
Modified: trunk/Scribus/scribus/scprintengine_gdi.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23849&path=/trunk/Scribus/scribus/scprintengine_gdi.cpp
==============================================================================
--- trunk/Scribus/scribus/scprintengine_gdi.cpp (original)
+++ trunk/Scribus/scribus/scprintengine_gdi.cpp Fri May 29 00:05:21 2020
@@ -436,7 +436,7 @@
options2.pageNumbers.push_back(page->pageNr() + 1);
options2.includePDFMarks = false;
- tempFilePath = PrefsManager::instance().preferencesLocation() + "/tmp.ps";
+ tempFilePath = ScPaths::tempFileDir() + "/tmp.ps";
PSLib *dd = new PSLib(doc, options2, PSLib::OutputEPS);
ret = dd->createPS(tempFilePath);
delete dd;
@@ -446,7 +446,7 @@
{
QString tmp;
QStringList opts;
- QString tempFilePath2 = PrefsManager::instance().preferencesLocation() + "/tmp2.ps";
+ QString tempFilePath2 = ScPaths::tempFileDir() + "/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))
Modified: trunk/Scribus/scribus/scprintengine_ps.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23849&path=/trunk/Scribus/scribus/scprintengine_ps.cpp
==============================================================================
--- trunk/Scribus/scribus/scprintengine_ps.cpp (original)
+++ trunk/Scribus/scribus/scprintengine_ps.cpp Fri May 29 00:05:21 2020
@@ -5,6 +5,7 @@
for which a new license (GPL+exception) is in place.
*/
+#include "scpaths.h"
#include "scprintengine_ps.h"
#include "scribusstructs.h"
#include "scribusdoc.h"
@@ -24,7 +25,7 @@
return false;
if (!options.toFile)
- filename = prefsManager.preferencesLocation() + "/tmp.ps";
+ filename = ScPaths::tempFileDir() + "/tmp.ps";
// Write the PS to a file
filename = QDir::toNativeSeparators(filename);
More information about the scribus-commit
mailing list