[LyX/master] When iterator is in a table cell, set Changed indicator for the right inset.

Jean-Marc Lasgouttes lasgouttes at lyx.org
Mon Jan 13 13:52:24 UTC 2020


commit 1baa8cdc93d123381055ff03f37b1984b2fa7e2a
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Mon Jan 13 15:08:50 2020 +0100

    When iterator is in a table cell, set Changed indicator for the right inset.
---
 src/Buffer.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index c0abc95..0dcd81a 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -5347,9 +5347,9 @@ void Buffer::updateBuffer(ParIterator & parit, UpdateType utype) const
 		changed |= parit->isChanged();
 	}
 
-	// set change indicator for the inset
-	if (parit.inset().asInsetText())
-		parit.inset().asInsetText()->isChanged(changed);
+	// set change indicator for the inset (or the cell that the iterator
+	// points to, if applicable).
+	parit.text()->inset().isChanged(changed);
 }
 
 


More information about the lyx-cvs mailing list