<table><tr><td style="">xuetianweng updated this revision to Diff 80607.<br />xuetianweng added a comment.
</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/D25339">View Revision</a></tr></table><br /><div><div><p>Fix the blank text issue by alway setLineWidth.</p>
<p>For QTextLine, the layout information is not filled until certain function is called.<br />
If dynamic wrap is not enabled, the line width is -1 so at the point we do the calculation,<br />
we will have no size information of the text. Use INT_MAX to set the lineWidth as workaround.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D25339?vs=80606&id=80607">https://phabricator.kde.org/D25339?vs=80606&id=80607</a></div></div><br /><div><strong>BRANCH</strong><div><div>arcpatch-D25339</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25339">https://phabricator.kde.org/D25339</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/render/katerenderer.cpp</div></div></div><br /><div><strong>To: </strong>xuetianweng, KTextEditor, cullmann, dhaumann<br /><strong>Cc: </strong>anthonyfieroni, kde-frameworks-devel, kwrite-devel, rrosch, LeGast00n, cblack, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>