mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-29 12:48:33 +00:00
6e6976fbc5
In this case, the extra element returned should empty but valid. The row flag BreakAfter is set to indicate that we have a break there (this principle will be used more generally in a forthcoming commit). To detect that we cut at the trailing space, it is necessary to rely on the difference between QTextLine::horizontalAdvance() and QTextLine::naturalTextWidth() when the flag QTextOption::IncludeTrailingSpaces is used: the trailing space is taken into account in the later, but not in the former. Somme comments have been added to make code intent clearer.