commit 1baa8cdc93d123381055ff03f37b1984b2fa7e2a
Author: Jean-Marc Lasgouttes <[email protected]>
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);
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs