diff --git a/ChangeLog.txt b/ChangeLog.txt index 8f27acdbe..8e466e2c1 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -48,6 +48,9 @@ - [#582] Issue with standard path to shared data on Linux. - [#595] GapWidth affecting to the margins. +# Version 0.4.6 +- [#594] Broken export on Mac. + # Version 0.4.5 October 15, 2016 - [#435] Valentina doesn't change the cursor. - [#473] Tape 'Preferences' cause loss of focus. diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index 2a44100e6..8bcdbe851 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -739,7 +739,13 @@ void MainWindowsNoGUI::PdfToPs(const QStringList ¶ms) const QApplication::setOverrideCursor(Qt::WaitCursor); #endif QProcess proc; +#if defined(Q_OS_MAC) + // Fix issue #594. Broken export on Mac. + proc.setWorkingDirectory(qApp->applicationDirPath()); + proc.start(QLatin1String("./") + PDFTOPS, params); +#else proc.start(PDFTOPS, params); +#endif if (proc.waitForStarted(15000)) { proc.waitForFinished(15000);