]> git.lyx.org Git - features.git/commit
Fix setting of row pos/endpos (overlapping rows)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 2 Sep 2021 13:16:28 +0000 (15:16 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Nov 2021 15:31:30 +0000 (16:31 +0100)
commita214c970420df5944b7299055bdce956af1ecd3a
tree6094079defbe242d8110fb83ac853d002476e445
parent97addf2556e7def3e4d6a82e5990498de6419ab6
Fix setting of row pos/endpos (overlapping rows)

In TextMetrics::breakParagraph, get rid of the fragile `pos' local
variable, which was not correctly updated. Rely on the endpos of the
last element in row instead.

Rewrite cleanupRow to rely on the endpos of last the row element to
set row endpos, instead of a `pos' parameter.
src/Row.cpp
src/TextMetrics.cpp