mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
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:
parent
167b7955cf
commit
16c25fbb33
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue