<table><tr><td style="">hoffmannrobert created this revision.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />hoffmannrobert requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21563">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>There were errors if a page's last line is too long and needs to be<br />
wrapped into two or more lines:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">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.</li>
<li class="remarkup-list-item">In print preview the first wrapped line was shown correctly at the end of the page, but the next and following pages were empty.</li>
</ul>

<p>Reasons:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">remainder variable was always 0</li>
<li class="remarkup-list-item">clipping was not reset</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><p>In Kate, open a text file that has long lines. Check lines at page ends<br />
which are wrapped to the next page. Check printing and print preview.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix_preview_and_printing</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21563">https://phabricator.kde.org/D21563</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/printing/printpainter.cpp</div></div></div><br /><div><strong>To: </strong>hoffmannrobert<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>