[LyX features/biginset] Fixup 4ae504ce316: honor Update::SinglePar

Jean-Marc Lasgouttes lasgouttes at lyx.org
Tue Dec 19 11:47:55 UTC 2023


The branch, biginset, has been updated.

- Log -----------------------------------------------------------------

commit 6e568269d2c27f9a673d9a294c8a197e38082662
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Tue Dec 19 13:59:28 2023 +0100

    Fixup 4ae504ce316: honor Update::SinglePar
    
    When Update::SinglePar has been set by some lfun, honor it even when
    singleparupdate is false.

diff --git a/src/Text.cpp b/src/Text.cpp
index 548e925..e951408 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -6334,7 +6334,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
 
 	// FIXME: the following code should go in favor of fine grained
 	// update flag treatment.
-	if (singleParUpdate) {
+	if (singleParUpdate || cur.result().screenUpdate() & Update::SinglePar) {
 		// Inserting characters does not change par height in general. So, try
 		// to update _only_ this paragraph. BufferView will detect if a full
 		// metrics update is needed anyway.

-----------------------------------------------------------------------

Summary of changes:
 src/Text.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Repository for new features


More information about the lyx-cvs mailing list