Fix text being cut off at the right side in print preview.
This patch now also copies the state of the QPainter returned from QPaintEngine::painter for the first page of a print preview, as it is done for all other pages of a preview in QPreviewPaintEngine::newPage(). Task-number: QTBUG-30621 Change-Id: I50001231c4006b9627ff80504618cbe0fa6d9f65 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>bb10
parent
4f7727d861
commit
3693ada1a6
|
|
@ -94,6 +94,7 @@ bool QPreviewPaintEngine::begin(QPaintDevice *)
|
|||
page->d_func()->in_memory_only = true;
|
||||
d->painter = new QPainter(page);
|
||||
d->engine = d->painter->paintEngine();
|
||||
*d->painter->d_func()->state = *painter()->d_func()->state;
|
||||
d->pages.append(page);
|
||||
d->state = QPrinter::Active;
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue