0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 16:44:39 +03:00

Checking painter before render the report has been added

This commit is contained in:
Arin Alexander 2019-02-01 21:59:37 +03:00
parent 8486d8dd94
commit 14c1b56c83

View File

@ -348,6 +348,10 @@ void ReportEnginePrivate::printReport(ReportPages pages, QPrinter &printer)
} else {
isFirst=false;
painter = new QPainter(&printer);
if (!painter->isActive()){
delete painter;
return;
}
}
QRectF printerPageRect = printer.pageRect(QPrinter::Millimeter);