hoffmannrobert created this revision. Herald added projects: Kate, Frameworks. Herald added subscribers: kde-frameworks-devel, kwrite-devel. hoffmannrobert requested review of this revision.
REVISION SUMMARY There were errors if a page's last line is too long and needs to be wrapped into two or more lines: - The first line of the wrapped lines was printed correctly at the end of the page, but on the next page this first line was printed again. - In print preview the first wrapped line was shown correctly at the end of the page, but the next and following pages were empty. Reasons: - remainder variable was always 0 - clipping was not reset TEST PLAN In Kate, open a text file that has long lines. Check lines at page ends which are wrapped to the next page. Check printing and print preview. REPOSITORY R39 KTextEditor BRANCH fix_preview_and_printing REVISION DETAIL https://phabricator.kde.org/D21563 AFFECTED FILES src/printing/printpainter.cpp To: hoffmannrobert Cc: kwrite-devel, kde-frameworks-devel, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann