dhaumann accepted this revision. dhaumann added a comment. This revision is now accepted and ready to land.
I just tested kwrite from master with Qt 5.12.0, and printing was completely broken. It even printed on Letter even though I specified A4 paper. A Qt update to Qt 5.12.3 fixed this - good so far. Indeed I can reproduce the following: If I have a line that wraps to the next page, the line is printed twice. With this patch, it works! REPOSITORY R39 KTextEditor BRANCH fix_preview_and_printing REVISION DETAIL https://phabricator.kde.org/D21563 To: hoffmannrobert, #kate, #ktexteditor, dhaumann Cc: cullmann, dhaumann, ngraham, kwrite-devel, kde-frameworks-devel, LeGast00n, domson, michaelh, bruns, demsking, sars