Show change bar for an end-of-paragraph change

Fixes bug #13003.
This commit is contained in:
Jean-Marc Lasgouttes 2023-12-11 17:40:09 +01:00
parent 94118b865e
commit 8832f816ce
2 changed files with 4 additions and 0 deletions

View File

@ -425,6 +425,7 @@ bool Row::sameString(Font const & f, Change const & ch) const
}
// FIXME: remove this and move the changebar update to Row::push_back()
void Row::finalizeLast()
{
if (elements_.empty())

View File

@ -1176,6 +1176,9 @@ RowList TextMetrics::breakParagraph(Row const & bigrow) const
// Last row in paragraph is flushed
rows.back().flushed(true);
cleanupRow(rows.back(), true);
// Is there an end-of-paragraph change?
if (bigrow.needsChangeBar())
rows.back().needsChangeBar(true);
}
return rows;