Draw non-external text annotations with word wrap

Summary:
Instead of with wrap anywhere

BUGS: 398604

Reviewers: cfeck

Reviewed By: cfeck

Subscribers: sander, tobiasdeiminger, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D16147
This commit is contained in:
Albert Astals Cid 2018-11-09 00:25:13 +01:00
parent 167b7955cf
commit 16c25fbb33

View file

@ -695,7 +695,7 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula
painter.drawText( borderWidth * invXScale, borderWidth * invYScale,
(image.width() - 2 * borderWidth) * invXScale,
(image.height() - 2 * borderWidth) * invYScale,
Qt::AlignTop | halign | Qt::TextWrapAnywhere,
Qt::AlignTop | halign | Qt::TextWordWrap,
text->contents() );
painter.resetTransform();
//Required as asking for a zero width pen results