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