commit 5c7b55099c85243cc27e850d8b857f6ace770612 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Jul 19 20:41:27 2025 +0200
Reformat code --- src/TextMetrics.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 2f4ba0cc06..ff73b36e50 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -1191,17 +1191,13 @@ Rows TextMetrics::breakParagraph(Row const & bigrow) const cleanupRow(rows.back(), false); } pos_type pos = rows.empty() ? 0 : rows.back().endpos(); - if (!rows.empty() && !rows.back().empty() && - rows.back().back().type == Row::PREEDIT) { - rows.push_back( - newRow( - *this, pit, pos, is_rtl, - rows.back().back().str.length() - ) - ); - } else { + if (!rows.empty() && !rows.back().empty() + && rows.back().back().type == Row::PREEDIT) { + size_type const shift = rows.back().back().str.length(); + rows.push_back(newRow(*this, pit, pos, is_rtl, shift)); + } else rows.push_back(newRow(*this, pit, pos, is_rtl)); - } + // the width available for the row. width = max_width_ - rows.back().right_margin; } -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs