From: Jean-Marc Lasgouttes Date: Mon, 13 Jan 2020 14:08:50 +0000 (+0100) Subject: When iterator is in a table cell, set Changed indicator for the right inset. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1aff9fd1d45c98566602eafdfa3dc19c31c2394e;p=features.git When iterator is in a table cell, set Changed indicator for the right inset. --- 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); }