commit bc8812b8606b1a1e0be7a149487bb666e5bf4126
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Sat Aug 22 16:16:02 2026 +0200

    small cleanup
---
 src/TextMetrics.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp
index 4ac1cb67fa..97fff2b2f9 100644
--- a/src/TextMetrics.cpp
+++ b/src/TextMetrics.cpp
@@ -1150,15 +1150,15 @@ int TextMetrics::redoInset(Row::Element & elt, 
DocIterator & parPos, int w) cons
 Rows TextMetrics::breakParagraph(Row const & bigrow) const
 {
        Rows rows;
-       bool const is_rtl = text_->isRTL(bigrow.pit());
-       bool const end_label = text_->getEndLabel(bigrow.pit()) != 
END_LABEL_NO_LABEL;
+       pit_type const pit = bigrow.pit();
+       bool const is_rtl = text_->isRTL(pit);
+       bool const end_label = text_->getEndLabel(pit) != END_LABEL_NO_LABEL;
        pos_type const bigrow_endpos =
                !bigrow.empty() && bigrow.back().type == Row::PREEDIT ?
                    bigrow.endpos() + im_->preeditString().length() :
                    bigrow.endpos();
-       int const next_width = max_width_ - leftMargin(bigrow.pit(), 
bigrow_endpos)
-               - rightMargin(bigrow.pit());
-       pit_type const pit = bigrow.pit();
+       int const next_width = max_width_ - leftMargin(pit, bigrow_endpos)
+               - rightMargin(pit);
        Paragraph const & par = text_->getPar(pit);
 
        // iterator pointing to paragraph to resolve macros
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to