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:
parent
8486d8dd94
commit
14c1b56c83
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user