TD: [skip ci] fix DrawingView::print/MDIViewPage::print

This commit is contained in:
wmayer
2021-04-02 12:06:24 +02:00
parent bd86b4dcfe
commit 0177f9b9f8
2 changed files with 2 additions and 4 deletions

View File

@@ -614,7 +614,7 @@ void DrawingView::print(QPrinter* printer)
// On Windows the preview looks broken when using paperRect as render area.
// Although the picture is scaled when using pageRect, it looks just fine.
if (paintType == QPaintEngine::Picture)
QRect rect = printer->pageLayout().paintRectPixels(printer->resolution());
rect = printer->pageLayout().paintRectPixels(printer->resolution());
#endif
this->m_view->scene()->render(&p, rect);
p.end();