diff --git a/src/app/puzzle/vpmainwindow.cpp b/src/app/puzzle/vpmainwindow.cpp index 9988ae8dd..e4c5b500d 100644 --- a/src/app/puzzle/vpmainwindow.cpp +++ b/src/app/puzzle/vpmainwindow.cpp @@ -769,7 +769,7 @@ void VPMainWindow::generateTiledPdf(QString fileName) printer->setCreator(QGuiApplication::applicationDisplayName()+QChar(QChar::Space)+ QCoreApplication::applicationVersion()); - printer->setOrientation(QPrinter::Portrait); // in the pdf file the pages should always be in portrait + printer->setPageOrientation(QPageLayout::Portrait); // in the pdf file the pages should always be in portrait // here we might need to so some rounding for the size. printer->setPageSize(QPageSize(m_layout->GetTilesSize(Unit::Mm),