Commit da1aa035 authored by Claudio Valerio's avatar Claudio Valerio

Merge branch 'master' of github.com:Sankore/Sankore-3.1

parents 826e4d2c be6de520
...@@ -105,7 +105,11 @@ void UBExportFullPDF::saveOverlayPdf(UBDocumentProxy* pDocumentProxy, QString fi ...@@ -105,7 +105,11 @@ void UBExportFullPDF::saveOverlayPdf(UBDocumentProxy* pDocumentProxy, QString fi
else else
pdfPrinter.setPageSize(QPrinter::A4); pdfPrinter.setPageSize(QPrinter::A4);
QSize docSize = pDocumentProxy->defaultDocumentSize();
if(docSize.width() > docSize.height())
{
pdfPrinter.setOrientation(QPrinter::Landscape); pdfPrinter.setOrientation(QPrinter::Landscape);
}
if (pageIndex != 0) if (pageIndex != 0)
pdfPrinter.newPage(); pdfPrinter.newPage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment