commit 4cbe42d0f118dd66c973a9d4f4e465ffa43280d0
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Fri Jan 9 15:35:29 2026 +0100

    Fixup f52842d2: remove faulty optimization that can cause a crash
    
    A better fix will be done in a later 2.5.x version.
---
 src/BufferView.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index fc5a4db4fa..e73f7563f4 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -1118,8 +1118,7 @@ bool BufferView::scrollToCursor(DocIterator const & dit, 
ScrollType how)
        pit_type const old_pit = d->anchor_pit_;
        int const old_ypos = d->anchor_ypos_;
 
-       if (!tm.contains(bot_pit))
-               tm.redoParagraph(bot_pit);
+       tm.redoParagraph(bot_pit);
        int const offset = coordOffset(dit).y;
 
        CursorSlice const & cs = dit.innerTextSlice();
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to