| 1310 | } |
| 1311 | |
| 1312 | void DiffTextWindow::print(RLPainter& p, const QRect&, qint32 firstLine, const LineType nofLinesPerPage) |
| 1313 | { |
| 1314 | if(d->getDiff3LineVector() == nullptr || !updatesEnabled() || |
| 1315 | (d->m_diff3WrapLineVector.empty() && d->m_bWordWrap)) |
| 1316 | return; |
| 1317 | resetSelection(); |
| 1318 | LineRef oldFirstLine = d->m_firstLine; |
| 1319 | d->m_firstLine = firstLine; |
| 1320 | QRect invalidRect = QRect(0, 0, 1000000000, 1000000000); |
| 1321 | gOptions->beginPrint(); |
| 1322 | draw(p, invalidRect, firstLine, std::min(firstLine + nofLinesPerPage, getNofLines())); |
| 1323 | gOptions->endPrint(); |
| 1324 | d->m_firstLine = oldFirstLine; |
| 1325 | } |
| 1326 | |
| 1327 | void DiffTextWindow::draw(RLPainter& p, const QRect& invalidRect, const qint32 beginLine, const LineRef& endLine) |
| 1328 | { |
nothing calls this directly
no test coverage detected