From 1aff9fd1d45c98566602eafdfa3dc19c31c2394e Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 13 Jan 2020 15:08:50 +0100 Subject: [PATCH] When iterator is in a table cell, set Changed indicator for the right inset. --- src/Buffer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index c0abc95200..0dcd81ab5e 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); } -- 2.39.5