]> 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, 7 Dec 2021 16:04:47 +0000 (17:04 +0100)
commit4b69f5efa7825c3aa5464686f4ecaea212f73422
treefe5b8356aeef48952891f12f8f6d463160a580f8
parent41206351852757e82eeb98b0a22b586f8dbdd544
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