When row if empty, set endpos correctly.

This commit is contained in:
Jean-Marc Lasgouttes 2021-12-28 18:48:55 +01:00
parent 4b02748b6d
commit dbd33f6622

View File

@ -1063,7 +1063,7 @@ Row newRow(TextMetrics const & tm, pit_type pit, pos_type pos, bool is_rtl)
void cleanupRow(Row & row, bool at_end)
{
if (row.empty()) {
row.endpos(0);
row.endpos(row.pos());
return;
}