From: Jean-Marc Lasgouttes Date: Wed, 3 Jul 2024 15:31:38 +0000 (+0200) Subject: Remove useless SinglePar update when scrolling in text X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2bdd691130e5507fc5cc2ca81e71eef189e90fc5;p=lyx.git Remove useless SinglePar update when scrolling in text Using SinglePar does not majke sense here since the paragraph is not modified and it might even not have a position yet. This fixes a crash in BufferView::singleParUpdate, which is not prepared (yet) to such situations. --- diff --git a/src/Text.cpp b/src/Text.cpp index 6ffd5f894d..2a5ff9f0b8 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -5344,7 +5344,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) bvcur.setCurrentFont(); if (cur.top() == old) { // We didn't move one iota, so no need to update the screen. - cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor); + cur.screenUpdateFlags(Update::FitCursor); //cur.noScreenUpdate(); return; }