Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.2.1
-
None
-
Windows 7, VS 2010
Description
When layouting a line has trailing tabs using QTextLine::setLineWidth with QTextOption::IncludeTrailingSpaces, a line doesn't be layouted correctly.
In other words QTextLine::layout_helper() produce one tab character difference.
To solve this problem, I've inserted following codes into QTextLayout.cpp line 1785
if (lbh.checkFullOtherwiseExtend(line))
{ lbh.spaceData.textWidth -= tabWidth; goto found; }I think above codes can help error correction.