Fix regression. Export to tiled PDF has no suffix.

This commit is contained in:
Roman Telezhynskyi 2021-01-30 20:05:04 +02:00
parent d86a483524
commit d62bf67759
2 changed files with 1 additions and 4 deletions

View File

@ -1,6 +1,7 @@
# Version 0.7.43 (unreleased)
- Improve Windows installer. Avoid crashing on checking if a program is still running.
- Fix regression. Changing dimension value caused an infinite loop.
- Fix regression. Export to tiled PDF has no suffix.
# Version 0.7.42 Jan 26, 2021
- Fix export of pattern recipe.

View File

@ -527,11 +527,7 @@ void VPrintLayout::SetPrinterOutputFileName(QPrinter *printer, PrintType printTy
{
const QString outputFileName = filePath.isEmpty() ? QDir::homePath() + QDir::separator() + DocName()
: filePath;
#ifdef Q_OS_WIN
printer->setOutputFileName(outputFileName);
#else
printer->setOutputFileName(outputFileName + QStringLiteral(".pdf"));
#endif
#ifdef Q_OS_MAC
printer->setOutputFormat(QPrinter::NativeFormat);