Fixed issue Sankore-11

preferencesAboutTextFull
shibakaneki 14 years ago
parent 79ca82208b
commit 6d872ae508
  1. 6
      src/adaptors/UBExportFullPDF.cpp

@ -105,7 +105,11 @@ void UBExportFullPDF::saveOverlayPdf(UBDocumentProxy* pDocumentProxy, QString fi
else
pdfPrinter.setPageSize(QPrinter::A4);
pdfPrinter.setOrientation(QPrinter::Landscape);
QSize docSize = pDocumentProxy->defaultDocumentSize();
if(docSize.width() > docSize.height())
{
pdfPrinter.setOrientation(QPrinter::Landscape);
}
if (pageIndex != 0)
pdfPrinter.newPage();

Loading…
Cancel
Save