0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-12-15 17:29:54 +03:00

Custom size printing has been changed

This commit is contained in:
Arin Alexander
2019-08-29 22:17:34 +03:00
parent 6af025471b
commit 872a2219e0
2 changed files with 7 additions and 4 deletions

View File

@@ -681,8 +681,8 @@ QSizeF PageItemDesignIntf::getRectByPageSize(const PageSize& size)
printer.setOutputFormat(QPrinter::PdfFormat);
printer.setOrientation((QPrinter::Orientation)pageOrientation());
printer.setPaperSize((QPrinter::PageSize)size);
return QSizeF(printer.paperSize(QPrinter::Millimeter).width() * 10,
printer.paperSize(QPrinter::Millimeter).height() * 10);
return QSizeF(printer.paperSize(QPrinter::Millimeter).width() * LimeReport::Const::mmFACTOR,
printer.paperSize(QPrinter::Millimeter).height() * LimeReport::Const::mmFACTOR);
}
else {