]> git.lyx.org Git - features.git/commitdiff
When iterator is in a table cell, set Changed indicator for the right inset.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 13 Jan 2020 14:08:50 +0000 (15:08 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:50 +0000 (15:48 +0200)
src/Buffer.cpp

index c0abc95200860f4d39b917683249c4e69071481a..0dcd81ab5ebed7c6cc4b0c8a27caaa08a4bc5a68 100644 (file)
@@ -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);
 }